mirror of
https://github.com/swaywm/sway.git
synced 2024-11-25 17:31:28 +00:00
Fix #2763
This commit is contained in:
parent
0d5c2f75b5
commit
eecebcafc6
|
@ -136,7 +136,7 @@ static bool keyboard_execute_compositor_binding(struct sway_keyboard *keyboard,
|
||||||
keysym <= XKB_KEY_XF86Switch_VT_12) {
|
keysym <= XKB_KEY_XF86Switch_VT_12) {
|
||||||
if (wlr_backend_is_multi(server.backend)) {
|
if (wlr_backend_is_multi(server.backend)) {
|
||||||
struct wlr_session *session =
|
struct wlr_session *session =
|
||||||
wlr_multi_get_session(server.backend);
|
wlr_backend_get_session(server.backend);
|
||||||
if (session) {
|
if (session) {
|
||||||
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
unsigned vt = keysym - XKB_KEY_XF86Switch_VT_1 + 1;
|
||||||
wlr_session_change_vt(session, vt);
|
wlr_session_change_vt(session, vt);
|
||||||
|
|
Loading…
Reference in a new issue