mirror of
https://github.com/hyprwm/hyprland-plugins.git
synced 2025-10-29 11:48:42 +00:00
scrolling: SCollumnData::up/down Break out of the loop after the first swap (#457)
This commit is contained in:
parent
c1ddebb423
commit
ee66b49fda
@ -99,6 +99,7 @@ void SColumnData::up(SP<SScrollingWindowData> w) {
|
||||
continue;
|
||||
|
||||
std::swap(windowDatas[i], windowDatas[i - 1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
@ -108,6 +109,7 @@ void SColumnData::down(SP<SScrollingWindowData> w) {
|
||||
continue;
|
||||
|
||||
std::swap(windowDatas[i], windowDatas[i + 1]);
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user