compositor: fix offset in auto arrangeMonitors

Fixes #3043, I am an idiot
This commit is contained in:
vaxerski 2023-08-25 13:11:32 +02:00
parent 6a5a5ed11e
commit 3a1f30519b

View file

@ -2551,7 +2551,7 @@ void CCompositor::arrangeMonitors() {
for (auto& m : toArrange) {
Debug::log(LOG, "arrangeMonitors: %s auto [%i, %.2f]", m->szName.c_str(), maxOffset, 0);
m->moveTo({maxOffset, 0});
maxOffset += m->vecPosition.x + m->vecSize.x;
maxOffset += m->vecSize.x;
}
// reset maxOffset (reuse)