From d2c0dd329e6a53fa0a475c40543258c279edcbd4 Mon Sep 17 00:00:00 2001 From: Alberth Date: Sun, 16 Aug 2015 21:28:40 +0200 Subject: [PATCH] Fix: Don't try to remove the same source more than once. --- apx/lib/graphics.py | 1 + 1 file changed, 1 insertion(+) diff --git a/apx/lib/graphics.py b/apx/lib/graphics.py index 8349378..6a5d0e6 100644 --- a/apx/lib/graphics.py +++ b/apx/lib/graphics.py @@ -2071,6 +2071,7 @@ def __check_mouse(self, x, y): def __on_mouse_move(self, scene, event): if self.__last_mouse_move: gobject.source_remove(self.__last_mouse_move) + self.__last_mouse_move = None self.mouse_x, self.mouse_y = event.x, event.y