Skip to content

Commit

Permalink
internal: fix changeWindowZOrder reordering incorrectly (#8494)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqa-Ib authored Nov 18, 2024
1 parent 505c1f8 commit 9749351
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/Compositor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -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 {
Expand Down

0 comments on commit 9749351

Please sign in to comment.