]> Dogcows Code - chaz/openbox/commitdiff
more handling time wraparounds
authorDana Jansens <danakj@orodu.net>
Wed, 28 Mar 2007 01:53:37 +0000 (01:53 +0000)
committerDana Jansens <danakj@orodu.net>
Wed, 28 Mar 2007 01:53:37 +0000 (01:53 +0000)
openbox/client.c

index 203c6dbc5e5077bd07132aabfcb12f00a10db933..6866e8d8da8749cabbd7a5801c65b556b736cd1c 100644 (file)
@@ -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.
              */
This page took 0.026549 seconds and 4 git commands to generate.