From ff12a41c40b8529330c06f37120787cf40bde980 Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Fri, 9 Dec 2022 14:03:37 +0000 Subject: minor focus fixes with LS-es and moving windows --- src/managers/KeybindManager.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/managers/KeybindManager.cpp') diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 9176ffcd..3dd6488b 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1015,6 +1015,10 @@ void CKeybindManager::moveActiveToWorkspaceSilent(std::string args) { // manually post event cuz it got ignored above g_pEventManager->postEvent(SHyprIPCEvent{"movewindow", getFormat("%x,%s", PWINDOW, PWORKSPACE->m_szName.c_str())}); + // this window is gone. Unfocus if needed + if (g_pCompositor->m_pLastWindow == PWINDOW) + g_pCompositor->focusWindow(nullptr); + g_pInputManager->refocus(); } -- cgit v1.2.3