From b159634ef974f3c63fbd6195c25493c78a4e872d Mon Sep 17 00:00:00 2001 From: MightyPlaza <123664421+MightyPlaza@users.noreply.github.com> Date: Thu, 13 Jul 2023 18:20:40 +0000 Subject: [PATCH] move/resize window (#2706) --- src/layout/IHyprLayout.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index a9317d4b..1315692b 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -241,6 +241,9 @@ void IHyprLayout::onBeginDragWindow() { g_pHyprRenderer->damageWindow(DRAGGINGWINDOW); g_pKeybindManager->shadowKeybinds(); + + g_pCompositor->focusWindow(DRAGGINGWINDOW); + g_pCompositor->moveWindowToTop(DRAGGINGWINDOW); } void IHyprLayout::onEndDragWindow() { @@ -266,8 +269,6 @@ void IHyprLayout::onEndDragWindow() { } g_pHyprRenderer->damageWindow(DRAGGINGWINDOW); - - g_pCompositor->focusWindow(DRAGGINGWINDOW); } void IHyprLayout::onMouseMove(const Vector2D& mousePos) {