mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-12 02:25:54 -07:00
compositor: fix offset in auto arrangeMonitors
Fixes #3043, I am an idiot
This commit is contained in:
@@ -2551,7 +2551,7 @@ void CCompositor::arrangeMonitors() {
|
|||||||
for (auto& m : toArrange) {
|
for (auto& m : toArrange) {
|
||||||
Debug::log(LOG, "arrangeMonitors: %s auto [%i, %.2f]", m->szName.c_str(), maxOffset, 0);
|
Debug::log(LOG, "arrangeMonitors: %s auto [%i, %.2f]", m->szName.c_str(), maxOffset, 0);
|
||||||
m->moveTo({maxOffset, 0});
|
m->moveTo({maxOffset, 0});
|
||||||
maxOffset += m->vecPosition.x + m->vecSize.x;
|
maxOffset += m->vecSize.x;
|
||||||
}
|
}
|
||||||
|
|
||||||
// reset maxOffset (reuse)
|
// reset maxOffset (reuse)
|
||||||
|
Reference in New Issue
Block a user