Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/bindings
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@localhost.localdomain>2006-09-22 09:57:19 (GMT)
committer Marco Pesenti Gritti <marco@localhost.localdomain>2006-09-22 09:57:19 (GMT)
commit092ded9e5384e4506e1cfc527c4041e416371f23 (patch)
tree33a7a372509cedb5b0a7a3b9f9846adcb97e3248 /bindings
parentccb33fe2548aaf9aa8ecfbe666372e93f82f9114 (diff)
Ungrab keyboard on release. Use the new stock icons for browser (still broken)
Diffstat (limited to 'bindings')
-rw-r--r--bindings/globalkeys/sugar-key-grabber.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/bindings/globalkeys/sugar-key-grabber.c b/bindings/globalkeys/sugar-key-grabber.c
index 70f9b47..f31e012 100644
--- a/bindings/globalkeys/sugar-key-grabber.c
+++ b/bindings/globalkeys/sugar-key-grabber.c
@@ -144,6 +144,8 @@ filter_events(GdkXEvent *xevent, GdkEvent *event, gpointer data)
g_signal_emit (grabber, signals[KEY_RELEASED], 0, key);
g_free(key);
+ XUngrabKeyboard (GDK_WINDOW_XDISPLAY (grabber->root), 0L);
+
return GDK_FILTER_REMOVE;
}
}
@@ -160,7 +162,6 @@ filter_events(GdkXEvent *xevent, GdkEvent *event, gpointer data)
GDK_WINDOW_XID (grabber->root),
0, GrabModeAsync, GrabModeAsync, 0L);
-
return GDK_FILTER_REMOVE;
}
}