internal: allow negative monitor offsets

This commit is contained in:
vaxerski
2023-08-16 18:16:36 +02:00
parent 19f3e927d9
commit 7e8a212027
3 changed files with 5 additions and 10 deletions

View File

@@ -2498,7 +2498,7 @@ void CCompositor::arrangeMonitors() {
for (auto it = toArrange.begin(); it != toArrange.end();) {
auto m = *it;
if (m->activeMonitorRule.offset.x >= 0 && m->activeMonitorRule.offset.y >= 0) {
if (m->activeMonitorRule.offset != Vector2D{-INT32_MAX, -INT32_MAX}) {
// explicit.
m->moveTo(m->activeMonitorRule.offset);
arranged.push_back(m);