mirror of
https://github.com/hyprwm/Hyprland.git
synced 2025-08-07 07:31:53 -07:00
keybinds: implement pushactivetobottom dispacher (#3217)
Co-authored-by: Leeman <lstrout@enlj.com>
This commit is contained in:
@@ -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};
|
||||
|
Reference in New Issue
Block a user