diff options
author | Aqa-Ib <[email protected]> | 2024-11-18 15:44:15 +0100 |
---|---|---|
committer | Vaxry <[email protected]> | 2024-11-19 21:45:20 +0000 |
commit | 57cf6d81a9a3f45feaff894bcbc87240b6e8afe6 (patch) | |
tree | f621ceffca451b4d8658d273a11686dc2448569b | |
parent | 77b9d03c3f63c649ee9709eab42332689467b5e6 (diff) | |
download | Hyprland-57cf6d81a9a3f45feaff894bcbc87240b6e8afe6.tar.gz Hyprland-57cf6d81a9a3f45feaff894bcbc87240b6e8afe6.zip |
internal: fix changeWindowZOrder reordering incorrectly (#8494)
-rw-r--r-- | src/Compositor.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp index fbbfd7e7..0e0c75a1 100644 --- a/src/Compositor.cpp +++ b/src/Compositor.cpp @@ -1389,6 +1389,9 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) { if (!validMapped(pWindow)) return; + if (top) + pWindow->m_bCreatedOverFullscreen = true; + if (pWindow == (top ? m_vWindows.back() : m_vWindows.front())) return; @@ -1413,9 +1416,6 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) { g_pHyprRenderer->damageMonitor(pw->m_pMonitor.lock()); }; - if (top) - pWindow->m_bCreatedOverFullscreen = true; - if (!pWindow->m_bIsX11) moveToZ(pWindow, top); else { |