diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-01-29 17:02:55 +0000 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-01-29 17:02:55 +0000 |
| commit | 32381fe6c4e33232401d7a74f587ee7296a61fcf (patch) | |
| tree | 0246f7a782dce055f0fb7b23fa490ae77ecb56c9 /src/managers/KeybindManager.cpp | |
| parent | 5d35c0432b70e2d5e82296caf7f496dc4612f3e5 (diff) | |
send a 1 on unknown minimize event
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index dae491ca..58be9ea9 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -451,7 +451,7 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) { const unsigned int TTY = keysym - XKB_KEY_XF86Switch_VT_1 + 1; // vtnr is bugged for some reason. - unsigned int ttynum = 0; + unsigned int ttynum = 0; #if defined(__linux__) || defined(__NetBSD__) || defined(__OpenBSD__) struct vt_stat st; if (!ioctl(0, VT_GETSTATE, &st)) @@ -1114,9 +1114,8 @@ void CKeybindManager::moveFocusTo(std::string args) { void CKeybindManager::focusUrgentOrLast(std::string args) { const auto PWINDOWURGENT = g_pCompositor->getUrgentWindow(); - const auto PWINDOWPREV = g_pCompositor->m_pLastWindow - ? (g_pCompositor->m_vWindowFocusHistory.size() < 2 ? nullptr : g_pCompositor->m_vWindowFocusHistory[1]) - : (g_pCompositor->m_vWindowFocusHistory.empty() ? nullptr : g_pCompositor->m_vWindowFocusHistory[0]); + const auto PWINDOWPREV = g_pCompositor->m_pLastWindow ? (g_pCompositor->m_vWindowFocusHistory.size() < 2 ? nullptr : g_pCompositor->m_vWindowFocusHistory[1]) : + (g_pCompositor->m_vWindowFocusHistory.empty() ? nullptr : g_pCompositor->m_vWindowFocusHistory[0]); if (!PWINDOWURGENT && !PWINDOWPREV) return; |
