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.
This commit is contained in:
parent
238327e0ae
commit
fe173f661b
1 changed files with 0 additions and 4 deletions
|
@ -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));
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue