From 7574b3db64e4207b0b0c07fa3f2dd4bf86f61314 Mon Sep 17 00:00:00 2001 From: DB <76707179+xVermillionx@users.noreply.github.com> Date: Mon, 23 Jan 2023 21:56:05 +0100 Subject: [PATCH] fix: hyprland crashing wenn moving window -1 from first monitor (#1419) Co-authored-by: xVermillionx --- src/Compositor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); }