aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorDB <[email protected]>2023-01-23 21:56:05 +0100
committerGitHub <[email protected]>2023-01-23 20:56:05 +0000
commit7574b3db64e4207b0b0c07fa3f2dd4bf86f61314 (patch)
tree1eab3ef7b6e3b0f06ed89b1818be42d7990abbc4
parentcb6e36d8046aaaede76be4eff2e51e3d35ba3b30 (diff)
downloadHyprland-7574b3db64e4207b0b0c07fa3f2dd4bf86f61314.tar.gz
Hyprland-7574b3db64e4207b0b0c07fa3f2dd4bf86f61314.zip
fix: hyprland crashing wenn moving window -1 from first monitor (#1419)
Co-authored-by: xVermillionx <xVermillionx@notvalid>
-rw-r--r--src/Compositor.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index aac5aef4..821f5f02 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -1704,7 +1704,7 @@ CMonitor* CCompositor::getMonitorFromString(const std::string& name) {
currentPlace += offsetLeft;
if (currentPlace < 0) {
- currentPlace = m_vMonitors.size() - currentPlace;
+ currentPlace = m_vMonitors.size() + currentPlace;
} else {
currentPlace = currentPlace % m_vMonitors.size();
}