mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-26 22:25:58 +01:00
internal: fix changeWindowZOrder reordering incorrectly (#8494)
This commit is contained in:
parent
77b9d03c3f
commit
57cf6d81a9
1 changed files with 3 additions and 3 deletions
|
@ -1389,6 +1389,9 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) {
|
||||||
if (!validMapped(pWindow))
|
if (!validMapped(pWindow))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
if (top)
|
||||||
|
pWindow->m_bCreatedOverFullscreen = true;
|
||||||
|
|
||||||
if (pWindow == (top ? m_vWindows.back() : m_vWindows.front()))
|
if (pWindow == (top ? m_vWindows.back() : m_vWindows.front()))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
@ -1413,9 +1416,6 @@ void CCompositor::changeWindowZOrder(PHLWINDOW pWindow, bool top) {
|
||||||
g_pHyprRenderer->damageMonitor(pw->m_pMonitor.lock());
|
g_pHyprRenderer->damageMonitor(pw->m_pMonitor.lock());
|
||||||
};
|
};
|
||||||
|
|
||||||
if (top)
|
|
||||||
pWindow->m_bCreatedOverFullscreen = true;
|
|
||||||
|
|
||||||
if (!pWindow->m_bIsX11)
|
if (!pWindow->m_bIsX11)
|
||||||
moveToZ(pWindow, top);
|
moveToZ(pWindow, top);
|
||||||
else {
|
else {
|
||||||
|
|
Loading…
Reference in a new issue