Skip to content

Commit

Permalink
fix changeWindowZOrder
Browse files Browse the repository at this point in the history
  • Loading branch information
Aqa-Ib committed Nov 17, 2024
1 parent cf18eca commit 7a619c2
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 7a619c2

Please sign in to comment.