]> Dogcows Code - chaz/openbox/commitdiff
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 fc6f5a78292b2d9dffa8b1df44171079a271277d..5e42b68b224aa3d44a7acddb65f735f217c13228 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 502d196214957381468d58e30bf85740f7c50856..ca60d6f3c592828d2351a4d624aa51c22a07c89a 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)),
This page took 0.029946 seconds and 4 git commands to generate.