[gnome-control-center] keyboard: Don't regrab the keyboard after an event



commit 141441eb714614d4f2d507cb3d27a2613f6ea82c
Author: Bastien Nocera <hadess hadess net>
Date:   Thu Sep 8 13:42:12 2016 +0200

    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

 panels/keyboard/cc-keyboard-shortcut-editor.c |    3 ---
 1 files changed, 0 insertions(+), 3 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c
index fe93133..6d26c65 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.c
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.c
@@ -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 */
   self->custom_mask &= ~GDK_LOCK_MASK;
 
-  if (!self->grab_pointer)
-    grab_seat (self, (GdkEvent*) event);
-
   setup_custom_shortcut (self);
 
   return GDK_EVENT_STOP;


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]