From 26cd1bf949d0460b754fe3b1ae7f06bd4b2535ee Mon Sep 17 00:00:00 2001 From: Vaxry Date: Sat, 9 Mar 2024 18:12:55 +0000 Subject: input: fix minor default cursor reset conditions --- src/events/Windows.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/events/Windows.cpp') diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index 84040ad5..2da54583 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -716,6 +716,9 @@ void Events::listener_unmapWindow(void* owner, void* data) { if (PWINDOWCANDIDATE != g_pCompositor->m_pLastWindow && PWINDOWCANDIDATE) g_pCompositor->focusWindow(PWINDOWCANDIDATE); + if (!PWINDOWCANDIDATE && g_pCompositor->getWindowsOnWorkspace(PWINDOW->m_iWorkspaceID) == 0) + g_pInputManager->refocus(); + g_pInputManager->sendMotionEventsToFocused(); // CWindow::onUnmap will remove this window's active status, but we can't really do it above. -- cgit v1.2.3