Use current time for events that might not have a timestamp.
This commit is contained in:
parent
6a81d20019
commit
10da188af6
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user