From 200653975ff8da5cc558e69972dd10020d9a7c41 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)