diff options
author | Mark McLoughlin <mark@skynet.ie> | 2003-02-26 01:55:25 +0000 |
---|---|---|
committer | Mark McLoughlin <markmc@src.gnome.org> | 2003-02-26 01:55:25 +0000 |
commit | 6af9a11361699721c9ac1bb8512433c2d7adfe2f (patch) | |
tree | aee9cd01cc6c03ab48e6d97495fc53277e40dbfc /src/keybindings.c | |
parent | 8377c7776c91ac2e1999a13179699e6d42f4008d (diff) | |
download | metacity-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.c | 8 |
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); } |