]> Dogcows Code - chaz/openbox/commitdiff
watch for currenttime
authorDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 16:12:36 +0000 (16:12 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 5 May 2007 16:12:36 +0000 (16:12 +0000)
openbox/grab.c

index 3e1066ba0f31eda4379ce8321778123c2047a4c6..b6a7a9392fb43c8a039bac6fe9425fa8a0a20bca 100644 (file)
@@ -43,7 +43,8 @@ static Time  grab_time = CurrentTime;
 static Time ungrab_time()
 {
     Time t = event_curtime;
-    if (!(t == CurrentTime || event_time_after(t, grab_time)))
+    if (grab_time == CurrentTime ||
+        !(t == CurrentTime || event_time_after(t, grab_time)))
         /* When the time moves backward on the server, then we can't use
            the grab time because that will be in the future. So instead we
            have to use CurrentTime.
This page took 0.027788 seconds and 4 git commands to generate.