diff options
author | vaxerski <[email protected]> | 2024-05-24 20:56:42 +0200 |
---|---|---|
committer | vaxerski <[email protected]> | 2024-05-24 20:56:53 +0200 |
commit | 6d67b84469d5c12c5bbc4880f327ca8eb7a2ed2d (patch) | |
tree | f983ff0fffa1571a1cfad27db008c8e1929811bf /src/Compositor.cpp | |
parent | 0d6eae052352dfa39a2442f252133988ecfb28ba (diff) | |
download | Hyprland-6d67b84469d5c12c5bbc4880f327ca8eb7a2ed2d.tar.gz Hyprland-6d67b84469d5c12c5bbc4880f327ca8eb7a2ed2d.zip |
monitor: avoid UB on undefined auto dir
ref #6217
Diffstat (limited to 'src/Compositor.cpp')
-rw-r--r-- | src/Compositor.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 5c9cfbad..529a3b3d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -2666,6 +2666,7 @@ void CCompositor::arrangeMonitors() { maxXOffsetLeft = newPosition.x; break; case eAutoDirs::DIR_AUTO_RIGHT: + case eAutoDirs::DIR_AUTO_NONE: newPosition.x = maxXOffsetRight; maxXOffsetRight += m->vecSize.x; break; |