diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp index 820775a6..fce3f2ec 100644 --- a/src/managers/KeybindManager.cpp +++ b/src/managers/KeybindManager.cpp @@ -422,6 +422,10 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) { const auto PSESSION = wlr_backend_get_session(g_pCompositor->m_sWLRBackend); if (PSESSION) { const int TTY = keysym - XKB_KEY_XF86Switch_VT_1 + 1; + + if (PSESSION->vtnr == TTY) + return false; // don't do anything. + wlr_session_change_vt(PSESSION, TTY); g_pCompositor->m_bSessionActive = false;