]> Dogcows Code - chaz/openbox/commitdiff
only use user_time updates if they are on the focused window
authorDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 04:43:25 +0000 (00:43 -0400)
committerDana Jansens <danakj@orodu.net>
Sat, 4 Aug 2007 04:43:25 +0000 (00:43 -0400)
openbox/event.c

index d31b68c95c2d22cb818a3e7546171c4bf1009c89..148d152ec1838dfc36a88af20d36b56321d07d3c 100644 (file)
@@ -1504,7 +1504,8 @@ static void event_handle_client(ObClient *client, XEvent *e)
         }
         else if (msgtype == prop_atoms.net_wm_user_time) {
             guint32 t;
-            if (PROP_GET32(client->window, net_wm_user_time, cardinal, &t) &&
+            if (client == focus_client &&
+                PROP_GET32(client->window, net_wm_user_time, cardinal, &t) &&
                 t && !event_time_after(t, e->xproperty.time) &&
                 (!event_last_user_time ||
                  event_time_after(t, event_last_user_time)))
This page took 0.022928 seconds and 4 git commands to generate.