diff options
| author | vaxerski <vaxry@vaxry.net> | 2023-01-01 16:54:13 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2023-01-01 16:54:13 +0100 |
| commit | cb4f7482269664dd20c373eef5d862a770df1643 (patch) | |
| tree | 0f95c6cafe2b6a0a5c11ee18a9bb42de749d6268 /src/managers/KeybindManager.cpp | |
| parent | 7525818097f92a99b2b8d02ea43bd0f8ccabd51c (diff) | |
added fakefullscreen
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 5de4a3d0..2eb93a2a 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -11,6 +11,7 @@ CKeybindManager::CKeybindManager() { m_mDispatchers["togglefloating"] = toggleActiveFloating; m_mDispatchers["workspace"] = changeworkspace; m_mDispatchers["fullscreen"] = fullscreenActive; + m_mDispatchers["fakefullscreen"] = fakeFullscreenActive; m_mDispatchers["movetoworkspace"] = moveActiveToWorkspace; m_mDispatchers["movetoworkspacesilent"] = moveActiveToWorkspaceSilent; m_mDispatchers["pseudo"] = toggleActivePseudo; @@ -1818,3 +1819,10 @@ void CKeybindManager::bringActiveToTop(std::string args) { if (g_pCompositor->m_pLastWindow && g_pCompositor->m_pLastWindow->m_bIsFloating) g_pCompositor->moveWindowToTop(g_pCompositor->m_pLastWindow); } + +void CKeybindManager::fakeFullscreenActive(std::string args) { + if (g_pCompositor->m_pLastWindow) { + // will also set the flag + g_pXWaylandManager->setWindowFullscreen(g_pCompositor->m_pLastWindow, !g_pCompositor->m_pLastWindow->m_bInFullscreenReported); + } +} |
