diff options
| author | alaricljs <me@mooluv.com> | 2023-09-21 17:18:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-21 22:18:26 +0100 |
| commit | e4ddfcfa0c944d0851feb9a359e6a224641060f7 (patch) | |
| tree | 34933ec0377bced94a2924ff40c5f54dfd4a246f /src/layout | |
| parent | d41a91e050b242e53e7590e7b9267527f039b9f4 (diff) | |
keybinds: implement pushactivetobottom dispacher (#3217)
Co-authored-by: Leeman <lstrout@enlj.com>
Diffstat (limited to 'src/layout')
| -rw-r--r-- | src/layout/DwindleLayout.cpp | 2 | ||||
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 6 | ||||
| -rw-r--r-- | src/layout/MasterLayout.cpp | 2 |
3 files changed, 5 insertions, 5 deletions
diff --git a/src/layout/DwindleLayout.cpp b/src/layout/DwindleLayout.cpp index 010cd6b4..1688b417 100644 --- a/src/layout/DwindleLayout.cpp +++ b/src/layout/DwindleLayout.cpp @@ -851,7 +851,7 @@ void CHyprDwindleLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscree g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv()); - g_pCompositor->moveWindowToTop(pWindow); + g_pCompositor->changeWindowZOrder(pWindow, true); recalculateMonitor(PMONITOR->ID); } diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 46883570..637eeb2a 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -161,7 +161,7 @@ void IHyprLayout::onWindowCreatedFloating(CWindow* pWindow) { if (pWindow->m_iX11Type != 2) { g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv()); - g_pCompositor->moveWindowToTop(pWindow); + g_pCompositor->changeWindowZOrder(pWindow, true); } } @@ -237,7 +237,7 @@ void IHyprLayout::onBeginDragWindow() { g_pKeybindManager->shadowKeybinds(); g_pCompositor->focusWindow(DRAGGINGWINDOW); - g_pCompositor->moveWindowToTop(DRAGGINGWINDOW); + g_pCompositor->changeWindowZOrder(DRAGGINGWINDOW, true); } void IHyprLayout::onEndDragWindow() { @@ -436,7 +436,7 @@ void IHyprLayout::changeWindowFloatingMode(CWindow* pWindow) { } else { onWindowRemovedTiling(pWindow); - g_pCompositor->moveWindowToTop(pWindow); + g_pCompositor->changeWindowZOrder(pWindow, true); if (DELTALESSTHAN(pWindow->m_vRealSize.vec().x, pWindow->m_vLastFloatingSize.x, 10) && DELTALESSTHAN(pWindow->m_vRealSize.vec().y, pWindow->m_vLastFloatingSize.y, 10)) { pWindow->m_vRealPosition = pWindow->m_vRealPosition.goalv() + (pWindow->m_vRealSize.goalv() - pWindow->m_vLastFloatingSize) / 2.f + Vector2D{10, 10}; diff --git a/src/layout/MasterLayout.cpp b/src/layout/MasterLayout.cpp index 576397f6..5b5d0122 100644 --- a/src/layout/MasterLayout.cpp +++ b/src/layout/MasterLayout.cpp @@ -868,7 +868,7 @@ void CHyprMasterLayout::fullscreenRequestForWindow(CWindow* pWindow, eFullscreen g_pXWaylandManager->setWindowSize(pWindow, pWindow->m_vRealSize.goalv()); - g_pCompositor->moveWindowToTop(pWindow); + g_pCompositor->changeWindowZOrder(pWindow, true); recalculateMonitor(PMONITOR->ID); } |
