Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/Util/Trackpad.py
diff options
context:
space:
mode:
authorOli <olpc@localhost.localdomain>2007-03-04 02:48:25 (GMT)
committer Oli <olpc@localhost.localdomain>2007-03-04 02:48:25 (GMT)
commit29cbe5d2b4fb1ddab8152092031714e2c77e78ef (patch)
tree326fd13cfce648801d7e5250d5d21c2f339c7dd0 /Util/Trackpad.py
parente95bedf3b44c945048cd7f697c4794a8b01d40af (diff)
click at the end of sounds and miniT frequency sweep fix
Diffstat (limited to 'Util/Trackpad.py')
-rw-r--r--Util/Trackpad.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Util/Trackpad.py b/Util/Trackpad.py
index 894e479..8d92b4a 100644
--- a/Util/Trackpad.py
+++ b/Util/Trackpad.py
@@ -73,8 +73,8 @@ class Trackpad:
gtk.gdk.Display.warp_pointer(self.display, self.screen, self.screen.get_width() / 2, self.screen.get_height() / 2)
gtk.gdk.pointer_grab(self.win.window, event_mask = gtk.gdk.POINTER_MOTION_MASK, cursor = self.invisible_cursor)
self.buttonPressed = True
- self.first_x = self.current_x
- self.first_y = self.current_y
+ self.first_x = self.screen.get_width() / 2
+ self.first_y = self.screen.get_height() / 2
def handle_keyRelease(self,widget,event):
if KEY_MAP_PIANO.has_key(event.hardware_keycode):