X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fgrab.c;h=b6a7a9392fb43c8a039bac6fe9425fa8a0a20bca;hb=a3f8c5c45a1ff323fc088cc5af49ab48d5679e54;hp=3e1066ba0f31eda4379ce8321778123c2047a4c6;hpb=7e946f68d9f8ec7c880664b437edbbaa5d49ac10;p=chaz%2Fopenbox diff --git a/openbox/grab.c b/openbox/grab.c index 3e1066ba..b6a7a939 100644 --- a/openbox/grab.c +++ b/openbox/grab.c @@ -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.