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
parent 7b43e5e2b6
commit 200653975f

View File

@ -61,8 +61,9 @@ class PointerMonitor(GObject.GObject, threading.Thread):
else: else:
# Is outside, so activate # Is outside, so activate
GLib.idle_add(self.idle) 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: except Exception as e:
print "Unexpected error: " + str(e) print "Unexpected error: " + str(e)