mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-07 20:06:00 +01:00
compositor: fix skipping iterators in arrangeMonitors
This commit is contained in:
parent
b9a783229b
commit
7c4daee29a
1 changed files with 5 additions and 1 deletions
|
@ -2493,7 +2493,7 @@ void CCompositor::arrangeMonitors() {
|
||||||
for (auto& m : m_vMonitors)
|
for (auto& m : m_vMonitors)
|
||||||
toArrange.push_back(m.get());
|
toArrange.push_back(m.get());
|
||||||
|
|
||||||
for (auto it = toArrange.begin(); it != toArrange.end(); ++it) {
|
for (auto it = toArrange.begin(); it != toArrange.end();) {
|
||||||
auto m = *it;
|
auto m = *it;
|
||||||
|
|
||||||
if (m->activeMonitorRule.offset.x >= 0 && m->activeMonitorRule.offset.y >= 0) {
|
if (m->activeMonitorRule.offset.x >= 0 && m->activeMonitorRule.offset.y >= 0) {
|
||||||
|
@ -2504,7 +2504,11 @@ void CCompositor::arrangeMonitors() {
|
||||||
|
|
||||||
if (it == toArrange.end())
|
if (it == toArrange.end())
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
continue;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
++it;
|
||||||
}
|
}
|
||||||
|
|
||||||
// auto left
|
// auto left
|
||||||
|
|
Loading…
Reference in a new issue