From d87574948e839afe6ec0224183c59b633ad0c9a0 Mon Sep 17 00:00:00 2001 From: Scott Anderson Date: Wed, 21 Jun 2017 13:40:09 +1200 Subject: Added VT switching to every example --- example/rotation.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'example/rotation.c') 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); + } } } -- cgit v1.2.3