diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-05-14 13:47:43 +0100 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-05-14 13:47:43 +0100 |
| commit | b748b0734f27c978758c45b6e18520f7522b9d6f (patch) | |
| tree | d09b06093c914b72d7b542beac46ffb41ad4b290 /src/events/Windows.cpp | |
| parent | 896a78aaa0bb2e4d4f197ed1286c4f030dbaef5f (diff) | |
input: don't refocus on closed window
Diffstat (limited to 'src/events/Windows.cpp')
| -rw-r--r-- | src/events/Windows.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/events/Windows.cpp b/src/events/Windows.cpp index ad0fd08c..05ef8daf 100644 --- a/src/events/Windows.cpp +++ b/src/events/Windows.cpp @@ -679,11 +679,11 @@ void Events::listener_unmapWindow(void* owner, void* data) { if (PWINDOWCANDIDATE != g_pCompositor->m_pLastWindow) { if (!PWINDOWCANDIDATE) - g_pInputManager->refocus(); + g_pInputManager->simulateMouseMovement(); else g_pCompositor->focusWindow(PWINDOWCANDIDATE); } else { - g_pInputManager->refocus(); + g_pInputManager->simulateMouseMovement(); } } else { Debug::log(LOG, "Unmapped was not focused, ignoring a refocus."); |
