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/IHyprLayout.cpp | |
| parent | d41a91e050b242e53e7590e7b9267527f039b9f4 (diff) | |
keybinds: implement pushactivetobottom dispacher (#3217)
Co-authored-by: Leeman <lstrout@enlj.com>
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
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}; |
