dont need to ignore mouse events during a keyboard grab, they go to the grab-window...
authorDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 15:58:09 +0000 (15:58 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 15:58:09 +0000 (15:58 +0000)
use our built in grab_keyboard

openbox/action.c
openbox/event.c

index fc6f5a7..5e42b68 100644 (file)
@@ -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)) {
index 502d196..ca60d6f 100644 (file)
@@ -591,8 +591,7 @@ 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);
+                    mouse_event(client, e);
                 } else if (e->type == KeyPress) {
                     keyboard_event((focus_cycle_target ? focus_cycle_target :
                                     (focus_hilite ? focus_hilite : client)),