|
|
@ -264,13 +264,9 @@ static bool keyboard_execute_compositor_binding(struct sway_keyboard *keyboard,
|
|
|
|
xkb_keysym_t keysym = pressed_keysyms[i];
|
|
|
|
xkb_keysym_t keysym = pressed_keysyms[i];
|
|
|
|
if (keysym >= XKB_KEY_XF86Switch_VT_1 &&
|
|
|
|
if (keysym >= XKB_KEY_XF86Switch_VT_1 &&
|
|
|
|
keysym <= XKB_KEY_XF86Switch_VT_12) {
|
|
|
|
keysym <= XKB_KEY_XF86Switch_VT_12) {
|
|
|
|
if (wlr_backend_is_multi(server.backend)) {
|
|
|
|
if (server.session) {
|
|
|
|
struct wlr_session *session =
|
|
|
|
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
|
|
|
wlr_backend_get_session(server.backend);
|
|
|
|
wlr_session_change_vt(server.session, vt);
|
|
|
|
if (session) {
|
|
|
|
|
|
|
|
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
|
|
|
|
|
|
|
wlr_session_change_vt(session, vt);
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
return true;
|
|
|
|
return true;
|
|
|
|
}
|
|
|
|
}
|
|
|
|