From: Dana Jansens Date: Wed, 28 Mar 2007 01:53:37 +0000 (+0000) Subject: more handling time wraparounds X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=d20f84f5ded581c57df5904c6fa550dac05ad036;p=chaz%2Fopenbox more handling time wraparounds --- diff --git a/openbox/client.c b/openbox/client.c index 203c6dbc..6866e8d8 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -414,8 +414,11 @@ void client_manage(Window window) else { /* If time stamp is old, don't steal focus */ - if (self->user_time && self->user_time < client_last_user_time) + if (self->user_time && + !event_time_after(self->user_time, client_last_user_time)) + { activate = FALSE; + } /* Don't steal focus from globally active clients. I stole this idea from KWin. It seems nice. */