From: Dana Jansens Date: Sat, 4 Aug 2007 04:43:25 +0000 (-0400) Subject: only use user_time updates if they are on the focused window X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=b6b9124ad09d05dfd25ea31cf4607edd45541254;p=chaz%2Fopenbox only use user_time updates if they are on the focused window --- diff --git a/openbox/event.c b/openbox/event.c index d31b68c9..148d152e 100644 --- a/openbox/event.c +++ b/openbox/event.c @@ -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)))