Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util
diff options
context:
space:
mode:
Diffstat (limited to 'common/Util')
-rw-r--r--common/Util/Trackpad.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/common/Util/Trackpad.py b/common/Util/Trackpad.py
index 0ddb929..89c182e 100644
--- a/common/Util/Trackpad.py
+++ b/common/Util/Trackpad.py
@@ -11,6 +11,9 @@ KEY_MAP_PIANO = Config.KEY_MAP_PIANO
class Trackpad:
def __init__(self, win):
+ if not Config.FEATURES_GRAB_MOUSE:
+ return
+
self.win = win
self.csnd = new_csound_client()
win.add_events(gtk.gdk.POINTER_MOTION_MASK)