summaryrefslogtreecommitdiff
path: root/src/managers/KeybindManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/managers/KeybindManager.cpp')
-rw-r--r--src/managers/KeybindManager.cpp13
1 files changed, 1 insertions, 12 deletions
diff --git a/src/managers/KeybindManager.cpp b/src/managers/KeybindManager.cpp
index 005ce392..f66b4457 100644
--- a/src/managers/KeybindManager.cpp
+++ b/src/managers/KeybindManager.cpp
@@ -810,18 +810,7 @@ bool CKeybindManager::handleVT(xkb_keysym_t keysym) {
Debug::log(LOG, "Switching from VT {} to VT {}", ttynum, TTY);
- if (!wlr_session_change_vt(g_pCompositor->m_sWLRSession, TTY))
- return true; // probably same session
-
- g_pCompositor->m_bSessionActive = false;
-
- for (auto& m : g_pCompositor->m_vMonitors) {
- m->noFrameSchedule = true;
- m->framesToSkip = 1;
- }
-
- Debug::log(LOG, "Switched to VT {}, destroyed all render data, frames to skip for each: 2", TTY);
-
+ wlr_session_change_vt(g_pCompositor->m_sWLRSession, TTY);
return true;
}