diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-10-14 14:22:20 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-10-14 14:22:31 +0100 |
| commit | a7bdfc06ca5747f9a689160c93b8d8c621462757 (patch) | |
| tree | 3c9535326497b41954563e9d9e68c1e6c2b26d35 /src/managers/KeybindManager.cpp | |
| parent | 7e7cb40909d77253139090b9e965a3e106609d46 (diff) | |
added bringactivetotop dispatcher
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 9095ccf8..1684222a 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -44,6 +44,7 @@ CKeybindManager::CKeybindManager() { m_mDispatchers["swapactiveworkspaces"] = swapActiveWorkspaces; m_mDispatchers["pin"] = pinActive; m_mDispatchers["mouse"] = mouse; + m_mDispatchers["bringactivetotop"] = bringActiveToTop; m_tScrollTimer.reset(); } @@ -1723,3 +1724,8 @@ void CKeybindManager::mouse(std::string args) { } } } + +void CKeybindManager::bringActiveToTop(std::string args) { + if (g_pCompositor->windowValidMapped(g_pCompositor->m_pLastWindow) && g_pCompositor->m_pLastWindow->m_bIsFloating) + g_pCompositor->moveWindowToTop(g_pCompositor->m_pLastWindow); +} |
