keyboard: Don't regrab the keyboard after an event

It was already grabbed if we received the event, so no need to grab it
again.

https://bugzilla.gnome.org/show_bug.cgi?id=769314
This commit is contained in:
Bastien Nocera 2016-09-08 13:42:12 +02:00
parent 6c7746abb3
commit 141441eb71

View file

@ -688,9 +688,6 @@ cc_keyboard_shortcut_editor_key_press_event (GtkWidget *widget,
/* CapsLock isn't supported as a keybinding modifier, so keep it from confusing us */ /* CapsLock isn't supported as a keybinding modifier, so keep it from confusing us */
self->custom_mask &= ~GDK_LOCK_MASK; self->custom_mask &= ~GDK_LOCK_MASK;
if (!self->grab_pointer)
grab_seat (self, (GdkEvent*) event);
setup_custom_shortcut (self); setup_custom_shortcut (self);
return GDK_EVENT_STOP; return GDK_EVENT_STOP;