Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/common/Util
diff options
context:
space:
mode:
authorAleksey Lim <alsroot@member.fsf.org>2008-12-19 23:37:23 (GMT)
committer Aleksey Lim <alsroot@member.fsf.org>2008-12-19 23:50:58 (GMT)
commit8dab340933bc44e98aa3c17a7bd5fe4c861cff25 (patch)
treec9e226ceedf60e5e84b1ed4ca774e0a6833334b9 /common/Util
parent757076c22902ccce95717e8d4fcc38e158d2f079 (diff)
add FEATURES_GRAB_MOUSE
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)