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:
Ian Douglas Scott 2020-08-07 10:51:00 -07:00
parent 238327e0ae
commit fe173f661b

View file

@ -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));
}
}