aboutsummaryrefslogtreecommitdiff
path: root/example/rotation.c
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-06-21 09:58:15 -0400
committerGitHub <noreply@github.com>2017-06-21 09:58:15 -0400
commitfd5ad1589460db3e8663efb1b09eacae1fb5e760 (patch)
treeab935777fb413666dab388b67be6c37e45cfca88 /example/rotation.c
parentd1493b23918f5558a0f6a24c9a7a2bb34207a6ed (diff)
parentd87574948e839afe6ec0224183c59b633ad0c9a0 (diff)
Merge pull request #18 from ascent12/session
Fix VT switching with libinput backend
Diffstat (limited to 'example/rotation.c')
-rw-r--r--example/rotation.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/example/rotation.c b/example/rotation.c
index d7b6b169..412a81ca 100644
--- a/example/rotation.c
+++ b/example/rotation.c
@@ -123,6 +123,10 @@ static void handle_keyboard_key(struct keyboard_state *kbstate,
update_velocities(kbstate->compositor, 0, 16);
break;
}
+
+ if (sym >= XKB_KEY_F1 && sym <= XKB_KEY_F12) {
+ wlr_session_change_vt(kbstate->compositor->session, sym - XKB_KEY_F1 + 1);
+ }
}
}