summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc-André Lureau <marcandre.lureau@redhat.com>2013-05-23 01:47:01 +0200
committerMarc-André Lureau <marcandre.lureau@redhat.com>2013-06-14 16:59:04 +0200
commit0fb74ae1a7fd8ffbf0d353bb5e5c7c2aabd1ab27 (patch)
tree38795eac1391a51eede365fcbca4689e1e41e9f5
parentee2546c6da6ac4ff4042daf8ddc9da074b970fcc (diff)
widget: release keys on grab-broken
This is similar to 8cbd5d745c221f788878c9c713f3b46a25828d3f and can be reproduced by pressing Win+l while the widget has the keyboard grab (pointer over the display). I have not reproduced implicit grab-broken event, I suppose they could happen if the grab is stolen from within the app. In any case, it's probably better to release the keys. This is related to: https://bugzilla.redhat.com/show_bug.cgi?id=917986
-rw-r--r--gtk/spice-widget.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/gtk/spice-widget.c b/gtk/spice-widget.c
index 4c67e26..1b5f8c3 100644
--- a/gtk/spice-widget.c
+++ b/gtk/spice-widget.c
@@ -482,6 +482,7 @@ static gboolean grab_broken(SpiceDisplay *self, GdkEventGrabBroken *event,
if (event->keyboard) {
try_keyboard_ungrab(self);
+ release_keys(self);
}
/* always release mouse when grab broken, this could be more