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
This commit is contained in:
Bastien Nocera 2016-09-08 11:43:44 +02:00
parent b32f58ed00
commit b10a1ac935

View file

@ -194,7 +194,7 @@ grab_seat (CcKeyboardShortcutEditor *self,
status = gdk_seat_grab (gdk_device_get_seat (pointer), status = gdk_seat_grab (gdk_device_get_seat (pointer),
window, window,
GDK_SEAT_CAPABILITY_ALL, GDK_SEAT_CAPABILITY_KEYBOARD,
FALSE, FALSE,
NULL, NULL,
event, event,