diff options
author | DB <[email protected]> | 2023-01-23 21:56:05 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2023-01-23 20:56:05 +0000 |
commit | 7574b3db64e4207b0b0c07fa3f2dd4bf86f61314 (patch) | |
tree | 1eab3ef7b6e3b0f06ed89b1818be42d7990abbc4 /src/Compositor.cpp | |
parent | cb6e36d8046aaaede76be4eff2e51e3d35ba3b30 (diff) | |
download | Hyprland-7574b3db64e4207b0b0c07fa3f2dd4bf86f61314.tar.gz Hyprland-7574b3db64e4207b0b0c07fa3f2dd4bf86f61314.zip |
fix: hyprland crashing wenn moving window -1 from first monitor (#1419)
Co-authored-by: xVermillionx <xVermillionx@notvalid>
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r-- | src/Compositor.cpp | 2 |
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(); } |