dont need to ignore mouse events during a keyboard grab, they go to the grab-window anyways
use our built in grab_keyboard
This commit is contained in:
parent
27773e1cb7
commit
d6e49acf0f
2 changed files with 2 additions and 3 deletions
|
@ -1042,7 +1042,7 @@ void action_run_list(GSList *acts, ObClient *c, ObFrameContext context,
|
|||
it won't work right unless we XUngrabKeyboard first,
|
||||
even though we grabbed the key/button Asychronously.
|
||||
e.g. "gnome-panel-control --main-menu" */
|
||||
XUngrabKeyboard(ob_display, event_curtime);
|
||||
grab_keyboard(FALSE);
|
||||
}
|
||||
|
||||
for (it = acts; it; it = g_slist_next(it)) {
|
||||
|
|
|
@ -591,7 +591,6 @@ static void event_process(const XEvent *ec, gpointer data)
|
|||
|
||||
if (e->type == ButtonPress || e->type == ButtonRelease ||
|
||||
e->type == MotionNotify) {
|
||||
if (!keyboard_interactively_grabbed())
|
||||
mouse_event(client, e);
|
||||
} else if (e->type == KeyPress) {
|
||||
keyboard_event((focus_cycle_target ? focus_cycle_target :
|
||||
|
|
Loading…
Reference in a new issue