diff options
| author | はれなよ <123649644+harenayo@users.noreply.github.com> | 2024-06-30 03:04:48 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-29 20:04:48 +0200 |
| commit | 1f43a5c859bfdf3dc6e880610e21cd9434a4e47b (patch) | |
| tree | 1f5eeaa6c4c12396e41bd083dae107bbc1685678 /src/managers/KeybindManager.cpp | |
| parent | 9c5dd59d4b1927b7d88e8e3c2e260eb01d95794b (diff) | |
session: fix activate events being always treated as on (#6696)
* Fix listener_sessionActive to handle an event correctly when the session get inactivated
* Remove log
Diffstat (limited to 'src/managers/KeybindManager.cpp')
| -rw-r--r-- | src/managers/KeybindManager.cpp | 13 |
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; } |
