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.
This commit is contained in:
parent
8377c7776c
commit
6af9a11361
@ -1,3 +1,9 @@
|
|||||||
|
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.
|
||||||
|
|
||||||
2003-02-24 Mark McLoughlin <mark@skynet.ie>
|
2003-02-24 Mark McLoughlin <mark@skynet.ie>
|
||||||
|
|
||||||
Take control of the panel's global keybindings. The
|
Take control of the panel's global keybindings. The
|
||||||
|
@ -2617,12 +2617,20 @@ handle_panel_keybinding (MetaDisplay *display,
|
|||||||
ev.data.l[0] = action_atom;
|
ev.data.l[0] = action_atom;
|
||||||
ev.data.l[1] = event->xkey.time;
|
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);
|
meta_error_trap_push (display);
|
||||||
|
|
||||||
|
/* Release the grab for the panel before sending the event */
|
||||||
|
XUngrabKeyboard (display->xdisplay, event->xkey.time);
|
||||||
|
|
||||||
XSendEvent (display->xdisplay,
|
XSendEvent (display->xdisplay,
|
||||||
screen->xroot,
|
screen->xroot,
|
||||||
False,
|
False,
|
||||||
StructureNotifyMask,
|
StructureNotifyMask,
|
||||||
(XEvent*) &ev);
|
(XEvent*) &ev);
|
||||||
|
|
||||||
meta_error_trap_pop (display, FALSE);
|
meta_error_trap_pop (display, FALSE);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user