mirror of
https://github.com/swaywm/sway.git
synced 2026-03-22 05:34:04 -04:00
Update for wlroots!3814
References: https://gitlab.freedesktop.org/wlroots/wlroots/-/merge_requests/3814
This commit is contained in:
parent
717e9ef581
commit
7623292734
3 changed files with 5 additions and 8 deletions
|
|
@ -264,13 +264,9 @@ static bool keyboard_execute_compositor_binding(struct sway_keyboard *keyboard,
|
|||
xkb_keysym_t keysym = pressed_keysyms[i];
|
||||
if (keysym >= XKB_KEY_XF86Switch_VT_1 &&
|
||||
keysym <= XKB_KEY_XF86Switch_VT_12) {
|
||||
if (wlr_backend_is_multi(server.backend)) {
|
||||
struct wlr_session *session =
|
||||
wlr_backend_get_session(server.backend);
|
||||
if (session) {
|
||||
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
||||
wlr_session_change_vt(session, vt);
|
||||
}
|
||||
if (server.session) {
|
||||
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
||||
wlr_session_change_vt(server.session, vt);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue