aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDrew DeVault <sir@cmpwn.com>2017-10-31 13:11:00 -0400
committerGitHub <noreply@github.com>2017-10-31 13:11:00 -0400
commit7200d643363e988edf6777c38e7f8fcd451a2c50 (patch)
tree0bed2a0f68566e50bf2a75c615a35d14ba52a4f0
parente9c2cf09dcf1ac41b66d70ecdaf37a629aa4d7cf (diff)
parente5b49158b49d8e00d65a7ff3c03c58726c6ba992 (diff)
Merge pull request #363 from acrisci/feature/grab-tweaks
Input grab tweaks and fixes
-rw-r--r--rootston/keyboard.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/rootston/keyboard.c b/rootston/keyboard.c
index dc48597e..e174b731 100644
--- a/rootston/keyboard.c
+++ b/rootston/keyboard.c
@@ -83,6 +83,11 @@ static bool keyboard_keysym_press(struct roots_keyboard *keyboard,
return true;
}
+ if (keysym == XKB_KEY_Escape) {
+ wlr_seat_pointer_end_grab(keyboard->input->wl_seat);
+ wlr_seat_keyboard_end_grab(keyboard->input->wl_seat);
+ }
+
uint32_t modifiers = wlr_keyboard_get_modifiers(keyboard->device->keyboard);
struct wl_list *bindings = &keyboard->input->server->config->bindings;
struct binding_config *bc;