diff options
| author | vaxerski <vaxry@vaxry.net> | 2022-09-22 16:48:40 +0100 |
|---|---|---|
| committer | vaxerski <vaxry@vaxry.net> | 2022-09-22 16:48:40 +0100 |
| commit | c08218301b613f93c480e7d9d32600cdf4a41bfe (patch) | |
| tree | c220bbaf891a5bea39c76c1c67d0f98ec43be5db /src/managers/KeybindManager.cpp | |
| parent | 75aaf11a9ccde630a9c704cc9cc8ccbbfb71f130 (diff) | |
disallow pinning fullscreen
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index e95ab94c..f0b6b8cb 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -1600,7 +1600,7 @@ void CKeybindManager::swapActiveWorkspaces(std::string args) { } void CKeybindManager::pinActive(std::string args) { - if (!g_pCompositor->windowValidMapped(g_pCompositor->m_pLastWindow) || !g_pCompositor->m_pLastWindow->m_bIsFloating) + if (!g_pCompositor->windowValidMapped(g_pCompositor->m_pLastWindow) || !g_pCompositor->m_pLastWindow->m_bIsFloating || g_pCompositor->m_pLastWindow->m_bIsFullscreen) return; g_pCompositor->m_pLastWindow->m_bPinned = !g_pCompositor->m_pLastWindow->m_bPinned; |
