diff options
| author | Vaxry <43317083+vaxerski@users.noreply.github.com> | 2023-09-01 22:03:56 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-01 22:03:56 +0200 |
| commit | d9292800a27ca7de5cb8b258651e535a7880e9e6 (patch) | |
| tree | f02edbf66db79faf820c4e45a2f141f4aa745f44 /src/managers/KeybindManager.cpp | |
| parent | 774a5bedf862e9956c1db42522f39a7b9327b32f (diff) | |
internal: Unsafe state reworks (#3114)
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 0f1cd139..ef6ee6cb 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -215,7 +215,7 @@ bool CKeybindManager::tryMoveFocusToMonitor(CMonitor* monitor) { } bool CKeybindManager::onKeyEvent(wlr_keyboard_key_event* e, SKeyboard* pKeyboard) { - if (!g_pCompositor->m_bSessionActive) { + if (!g_pCompositor->m_bSessionActive || g_pCompositor->m_bUnsafeState) { m_dPressedKeycodes.clear(); m_dPressedKeysyms.clear(); return true; @@ -1502,7 +1502,6 @@ void CKeybindManager::toggleSpecialWorkspace(std::string args) { } bool requestedWorkspaceIsAlreadyOpen = false; - bool requestedWorkspaceExists = g_pCompositor->getWorkspaceByID(workspaceID); const auto PMONITOR = *PFOLLOWMOUSE == 1 ? g_pCompositor->getMonitorFromCursor() : g_pCompositor->m_pLastMonitor; int specialOpenOnMonitor = PMONITOR->specialWorkspaceID; |
