From e5b49158b49d8e00d65a7ff3c03c58726c6ba992 Mon Sep 17 00:00:00 2001 From: Tony Crisci Date: Tue, 31 Oct 2017 08:38:21 -0400 Subject: rootston: end grab on escape --- rootston/keyboard.c | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'rootston') 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; -- cgit v1.2.3