diff options
Diffstat (limited to 'src/layout/IHyprLayout.cpp')
| -rw-r--r-- | src/layout/IHyprLayout.cpp | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/src/layout/IHyprLayout.cpp b/src/layout/IHyprLayout.cpp index 888c159c..24e76035 100644 --- a/src/layout/IHyprLayout.cpp +++ b/src/layout/IHyprLayout.cpp @@ -195,10 +195,15 @@ void IHyprLayout::onBeginDragWindow() { void IHyprLayout::onEndDragWindow() { const auto DRAGGINGWINDOW = g_pInputManager->currentlyDraggedWindow; - g_pInputManager->unsetCursorImage(); - - if (!g_pCompositor->windowValidMapped(DRAGGINGWINDOW)) + if (!g_pCompositor->windowValidMapped(DRAGGINGWINDOW)) { + if (DRAGGINGWINDOW) { + g_pInputManager->unsetCursorImage(); + g_pInputManager->currentlyDraggedWindow = nullptr; + } return; + } + + g_pInputManager->unsetCursorImage(); g_pInputManager->currentlyDraggedWindow = nullptr; |
