From b10a1ac9351c47afed103ef3d671a12c6f851dde Mon Sep 17 00:00:00 2001 From: Bastien Nocera Date: Thu, 8 Sep 2016 11:43:44 +0200 Subject: [PATCH] keyboard: Don't grab the mouse pointer In a0a15588, we starting using a separate shortcut editor window, which was doing its own capture instead of using the GtkCellRendererAccel. But this started grabbing both keyboard and pointer, making it impossible to cancel captures using the pointer. We now only grab keyboard keys, making the pointer usable again. https://bugzilla.gnome.org/show_bug.cgi?id=769314 --- panels/keyboard/cc-keyboard-shortcut-editor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c index 8fc9b9bd5..1efd99123 100644 --- a/panels/keyboard/cc-keyboard-shortcut-editor.c +++ b/panels/keyboard/cc-keyboard-shortcut-editor.c @@ -194,7 +194,7 @@ grab_seat (CcKeyboardShortcutEditor *self, status = gdk_seat_grab (gdk_device_get_seat (pointer), window, - GDK_SEAT_CAPABILITY_ALL, + GDK_SEAT_CAPABILITY_KEYBOARD, FALSE, NULL, event,