]> Dogcows Code - chaz/openbox/commitdiff
don't use the timestamp and such fields when the _NET_ACTIVE_WINDOW is using the...
authorDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 20:49:31 +0000 (20:49 +0000)
committerDana Jansens <danakj@orodu.net>
Tue, 22 May 2007 20:49:31 +0000 (20:49 +0000)
openbox/event.c

index aa082e68a8c66a187b615e2405f3a1405b1457b1..d7c723d120f1abbc1708f2ddbddf7b84305975b0 100644 (file)
@@ -1227,11 +1227,16 @@ static void event_handle_client(ObClient *client, XEvent *e)
                       (e->xclient.data.l[0] == 1 ? "application" :
                        (e->xclient.data.l[0] == 2 ? "user" : "INVALID"))));
             /* XXX make use of data.l[2] !? */
-            event_curtime = e->xclient.data.l[1];
-            if (event_curtime == 0)
+            if (e->xclient.data.l[0] == 1 || e->xclient.data.l[0] == 2) {
+                event_curtime = e->xclient.data.l[1];
+                if (event_curtime == 0)
+                    ob_debug_type(OB_DEBUG_APP_BUGS,
+                                  "_NET_ACTIVE_WINDOW message for window %s is"
+                                  " missing a timestamp\n", client->title);
+            } else
                 ob_debug_type(OB_DEBUG_APP_BUGS,
                               "_NET_ACTIVE_WINDOW message for window %s is "
-                              "missing a timestamp\n", client->title);
+                              "missing source indication\n");
             client_activate(client, FALSE,
                             (e->xclient.data.l[0] == 0 ||
                              e->xclient.data.l[0] == 2));
This page took 0.028778 seconds and 4 git commands to generate.