mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-23 02:45:58 +01:00
fix: hyprland crashing wenn moving window -1 from first monitor (#1419)
Co-authored-by: xVermillionx <xVermillionx@notvalid>
This commit is contained in:
parent
cb6e36d804
commit
7574b3db64
1 changed files with 1 additions and 1 deletions
|
@ -1704,7 +1704,7 @@ CMonitor* CCompositor::getMonitorFromString(const std::string& name) {
|
||||||
currentPlace += offsetLeft;
|
currentPlace += offsetLeft;
|
||||||
|
|
||||||
if (currentPlace < 0) {
|
if (currentPlace < 0) {
|
||||||
currentPlace = m_vMonitors.size() - currentPlace;
|
currentPlace = m_vMonitors.size() + currentPlace;
|
||||||
} else {
|
} else {
|
||||||
currentPlace = currentPlace % m_vMonitors.size();
|
currentPlace = currentPlace % m_vMonitors.size();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue