Permalink
Browse files

Added option to warp mouse when switching spaces.

  • Loading branch information...
1 parent 096cf03 commit 8ca4aedc6e6cbe3961525aba90dc89af5eb51e8c @ksuther committed Nov 8, 2007
Showing with 2,878 additions and 792 deletions.
  1. +1,214 −790 English.lproj/WarpPreferences.xib
  2. +4 −1 MainController.m
  3. +1,650 −0 SystemEvents.h
  4. +4 −1 WarpDefaults.m
  5. +2 −0 WarpPreferences.h
  6. +4 −0 WarpPreferences.m

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -13,6 +13,7 @@
float _activationDelay = 0.5;
NSUInteger _activationModifiers = cmdKey;
+BOOL _warpMouse = NO;
enum {
LeftDirection = 0,
@@ -127,7 +128,7 @@ + (void)switchToSpace:(NSTimer *)timer
break;
}
- if (switchedSpace) {
+ if (switchedSpace && _warpMouse) {
CGWarpMouseCursorPosition(warpLocation);
}
}
@@ -203,6 +204,8 @@ - (void)defaultsChanged:(NSNotification *)note
if ([shift boolValue]) {
_activationModifiers |= shiftKey;
}
+
+ _warpMouse = [df boolForKey:@"WarpMouse"];
}
@end
Oops, something went wrong.

0 comments on commit 8ca4aed

Please sign in to comment.