From 6af9a11361699721c9ac1bb8512433c2d7adfe2f Mon Sep 17 00:00:00 2001 From: Mark McLoughlin Date: Wed, 26 Feb 2003 01:55:25 +0000 Subject: [PATCH] release the keyboard grab before sending the action message to the panel. 2003-02-26 Mark McLoughlin * src/keybindings.c: (handle_panel_keybinding): release the keyboard grab before sending the action message to the panel. --- ChangeLog | 6 ++++++ src/keybindings.c | 8 ++++++++ 2 files changed, 14 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1845ec9a1..71b0ad254 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2003-02-26 Mark McLoughlin + + * src/keybindings.c: (handle_panel_keybinding): release + the keyboard grab before sending the action message to + the panel. + 2003-02-24 Mark McLoughlin Take control of the panel's global keybindings. The diff --git a/src/keybindings.c b/src/keybindings.c index be9fe533b..925ea3152 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); }