diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-08-06 20:57:38 +0200 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-08-06 20:57:38 +0200 |
| commit | 69b8568ccff1cc225c5ad4b341c8a09bdf9f8654 (patch) | |
| tree | c9311e3ef99a010940015e21672bfbe2b697c3a9 /src/managers/KeybindManager.cpp | |
| parent | ccd68049f727a52b59f8a432b132a16e683986e4 (diff) | |
better foreign toplevel protocol obedience
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 00cfad3f..bc6bab77 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -408,14 +408,7 @@ void CKeybindManager::spawn(std::string args) { } void CKeybindManager::killActive(std::string args) { - if (g_pCompositor->m_pLastWindow && g_pCompositor->windowValidMapped(g_pCompositor->m_pLastWindow)) { - g_pXWaylandManager->sendCloseWindow(g_pCompositor->m_pLastWindow); - g_pCompositor->m_pLastFocus = nullptr; - g_pCompositor->m_pLastWindow = nullptr; - g_pEventManager->postEvent(SHyprIPCEvent{"activewindow", ","}); // post an activewindow event to empty, as we are currently unfocused - } - - g_pCompositor->focusWindow(g_pCompositor->windowFromCursor()); + g_pCompositor->closeWindow(g_pCompositor->m_pLastWindow); } void CKeybindManager::clearKeybinds() { @@ -671,6 +664,8 @@ void CKeybindManager::moveActiveToWorkspace(std::string args) { } g_pInputManager->refocus(); + + PWINDOW->updateToplevel(); } void CKeybindManager::moveActiveToWorkspaceSilent(std::string args) { |
