Use current time for events that might not have a timestamp.

This commit is contained in:
hordepfo 2014-05-01 20:54:43 +01:00 committed by Clement Lefebvre
parent 6a81d20019
commit 10da188af6

View File

@ -61,8 +61,9 @@ class PointerMonitor(GObject.GObject, threading.Thread):
else:
# Is outside, so activate
GLib.idle_add(self.idle)
self.display.allow_events(X.ReplayPointer, event.time)
self.display.allow_events(X.ReplayPointer, event.time)
else:
self.display.allow_events(X.ReplayPointer, X.CurrentTime)
except Exception as e:
print "Unexpected error: " + str(e)