From fb3d2033ba5c9edc198296793dde59341577b9b0 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 19 Mar 2007 17:59:16 +0000 Subject: not passing timestamps sometimes and not others. set event_curtime when client messages provide a timestamp. --- openbox/client.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'openbox/client.c') diff --git a/openbox/client.c b/openbox/client.c index 7c29f9f2..e09aff53 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -3080,7 +3080,7 @@ static void client_unfocus(ObClient *self) } } -void client_activate(ObClient *self, gboolean here, gboolean user, Time time) +void client_activate(ObClient *self, gboolean here, gboolean user) { /* XXX do some stuff here if user is false to determine if we really want to activate it or not (a parent or group member is currently @@ -3088,9 +3088,9 @@ void client_activate(ObClient *self, gboolean here, gboolean user, Time time) */ ob_debug("Want to activate window 0x%x with time %u (last time %u), " "source=%s\n", - self->window, time, client_last_user_time, + self->window, event_curtime, client_last_user_time, (user ? "user" : "application")); - if (!user && time && time < client_last_user_time) + if (!user && event_curtime && event_curtime < client_last_user_time) client_hilite(self, TRUE); else { if (client_normal(self) && screen_showing_desktop) -- cgit v1.2.3