summaryrefslogtreecommitdiff
path: root/src/keybindings.c
diff options
context:
space:
mode:
authorMark McLoughlin <mark@skynet.ie>2003-02-26 01:55:25 +0000
committerMark McLoughlin <markmc@src.gnome.org>2003-02-26 01:55:25 +0000
commit6af9a11361699721c9ac1bb8512433c2d7adfe2f (patch)
treeaee9cd01cc6c03ab48e6d97495fc53277e40dbfc /src/keybindings.c
parent8377c7776c91ac2e1999a13179699e6d42f4008d (diff)
downloadmetacity-6af9a11361699721c9ac1bb8512433c2d7adfe2f.tar.gz
release the keyboard grab before sending the action message to the panel.
2003-02-26 Mark McLoughlin <mark@skynet.ie> * src/keybindings.c: (handle_panel_keybinding): release the keyboard grab before sending the action message to the panel.
Diffstat (limited to 'src/keybindings.c')
-rw-r--r--src/keybindings.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/keybindings.c b/src/keybindings.c
index be9fe533..925ea315 100644
--- a/src/keybindings.c
+++ b/src/keybindings.c
@@ -2617,12 +2617,20 @@ handle_panel_keybinding (MetaDisplay *display,
ev.data.l[0] = action_atom;
ev.data.l[1] = event->xkey.time;
+ meta_topic (META_DEBUG_KEYBINDINGS,
+ "Sending panel message with timestamp %lu\n", event->xkey.time);
+
meta_error_trap_push (display);
+
+ /* Release the grab for the panel before sending the event */
+ XUngrabKeyboard (display->xdisplay, event->xkey.time);
+
XSendEvent (display->xdisplay,
screen->xroot,
False,
StructureNotifyMask,
(XEvent*) &ev);
+
meta_error_trap_pop (display, FALSE);
}