diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-06-22 11:15:59 -0400 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-06-22 11:15:59 -0400 |
commit | f5423a51b559a0fc0d51f7a11cdaf82789a058c9 (patch) | |
tree | bdf287b0571044e94fb59d38daf999f67472c276 /example/rotation.c | |
parent | 8ce9237c928a7dc6afb889291237465daf4d6b43 (diff) |
Use wl_display_run and refactor example keyboards
Diffstat (limited to 'example/rotation.c')
-rw-r--r-- | example/rotation.c | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/example/rotation.c b/example/rotation.c index b795b438..7eed1c2e 100644 --- a/example/rotation.c +++ b/example/rotation.c @@ -107,9 +107,6 @@ static void handle_keyboard_key(struct keyboard_state *kbstate, // Also, key repeat if (key_state == WLR_KEY_PRESSED) { switch (sym) { - case XKB_KEY_Escape: - kbstate->compositor->exit = true; - break; case XKB_KEY_Left: update_velocities(kbstate->compositor, -16, 0); break; @@ -123,10 +120,6 @@ 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); - } } } |