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) {