mirror of
https://github.com/hyprwm/Hyprland
synced 2024-11-13 02:05:59 +01:00
ignore VT switches to current vt
This commit is contained in:
parent
719a5b4f0b
commit
9bbae5b8e2
1 changed files with 4 additions and 0 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Reference in a new issue