diff options
| author | UjinT34 <41110182+UjinT34@users.noreply.github.com> | 2024-10-12 03:29:51 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-12 01:29:51 +0100 |
| commit | ee8116ac5dc412dce924a0163074ce7988dd0cfc (patch) | |
| tree | d7c4785660a0d9112e57f20780d60e7542934117 /src/Compositor.cpp | |
| parent | f5db4839730643169b7e8b7fb6ae2fbb8743ebe9 (diff) | |
input: Fix VRR for constrained cursors (#6877)
Diffstat (limited to 'src/Compositor.cpp')
| -rw-r--r-- | src/Compositor.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index 459aca11..dcc6422d 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1,4 +1,5 @@ #include "Compositor.hpp" +#include "debug/Log.hpp" #include "helpers/Splashes.hpp" #include "config/ConfigValue.hpp" #include "managers/CursorManager.hpp" @@ -1380,6 +1381,9 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) { if (!validMapped(pWindow)) return; + if (pWindow == (top ? m_vWindows.back() : m_vWindows.front())) + return; + auto moveToZ = [&](PHLWINDOW pw, bool top) -> void { if (top) { for (auto it = m_vWindows.begin(); it != m_vWindows.end(); ++it) { |
