Merge branch 'fix_mousedetector_stop' of https://github.com/godiard/sugar-toolkit-gtk3
This commit is contained in:
commit
ecc2f491b6
@ -441,6 +441,7 @@ class MouseSpeedDetector(GObject.GObject):
|
|||||||
def stop(self):
|
def stop(self):
|
||||||
if self._timeout_hid is not None:
|
if self._timeout_hid is not None:
|
||||||
GObject.source_remove(self._timeout_hid)
|
GObject.source_remove(self._timeout_hid)
|
||||||
|
self._timeout_hid = None
|
||||||
self._state = None
|
self._state = None
|
||||||
|
|
||||||
def _get_mouse_position(self):
|
def _get_mouse_position(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user