From 10da188af6dfb9faa86633036ac7bd56d979895c Mon Sep 17 00:00:00 2001 From: hordepfo Date: Thu, 1 May 2014 20:54:43 +0100 Subject: [PATCH] Use current time for events that might not have a timestamp. --- usr/lib/linuxmint/mintMenu/pointerMonitor.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/usr/lib/linuxmint/mintMenu/pointerMonitor.py b/usr/lib/linuxmint/mintMenu/pointerMonitor.py index 642a122..1229576 100644 --- a/usr/lib/linuxmint/mintMenu/pointerMonitor.py +++ b/usr/lib/linuxmint/mintMenu/pointerMonitor.py @@ -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)