[gnome-control-center] keyboard: Do not call gtk_grab_{add, remove} in shortcut editor



commit fe173f661befd4147d385ce7fe0c64eb11cd6a6d
Author: Ian Douglas Scott <idscott system76 com>
Date:   Fri Aug 7 10:51:00 2020 -0700

    keyboard: Do not call gtk_grab_{add,remove} in shortcut editor
    
    For some reason, the ungrab was making the window impossible to interact
    with. Without these calls, it seems to work as expected.

 panels/keyboard/cc-keyboard-shortcut-editor.c | 4 ----
 1 file changed, 4 deletions(-)
---
diff --git a/panels/keyboard/cc-keyboard-shortcut-editor.c b/panels/keyboard/cc-keyboard-shortcut-editor.c
index 75f505c34..3afb28835 100644
--- a/panels/keyboard/cc-keyboard-shortcut-editor.c
+++ b/panels/keyboard/cc-keyboard-shortcut-editor.c
@@ -227,8 +227,6 @@ grab_seat (CcKeyboardShortcutEditor *self)
   self->grab_pointer = gdk_seat_get_keyboard (seat);
   if (!self->grab_pointer)
     self->grab_pointer = gdk_seat_get_pointer (seat);
-
-  gtk_grab_add (GTK_WIDGET (self));
 }
 
 static void
@@ -238,8 +236,6 @@ release_grab (CcKeyboardShortcutEditor *self)
     {
       gdk_seat_ungrab (gdk_device_get_seat (self->grab_pointer));
       self->grab_pointer = NULL;
-
-      gtk_grab_remove (GTK_WIDGET (self));
     }
 }
 


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