diff options
author | Aaron Skomra <skomra@gmail.com> | 2012-03-09 07:54:21 -0800 |
---|---|---|
committer | Aaron Skomra <skomra@gmail.com> | 2012-03-09 07:54:21 -0800 |
commit | 1c3d4f3ba463b861fb9e717c51ad35c45d021a45 (patch) | |
tree | 61628a33729371332e4fc83049187d3bb358134b /src/xtoq/XtoqController.m | |
parent | 7a6a214acfa1be9231974eadb6309303c03f456a (diff) |
button press / release coordinates changed back to (0,0) after merge
Diffstat (limited to 'src/xtoq/XtoqController.m')
-rw-r--r-- | src/xtoq/XtoqController.m | 23 |
1 files changed, 11 insertions, 12 deletions
diff --git a/src/xtoq/XtoqController.m b/src/xtoq/XtoqController.m index 21992f0..99c1a6c 100644 --- a/src/xtoq/XtoqController.m +++ b/src/xtoq/XtoqController.m @@ -221,10 +221,10 @@ dispatch_async(xtoqDispatchQueue, ^{ xtoq_button_press (rootContext, - 0, - 0, - (int)[event windowNumber], - 0);;}); + 0,//[NSEvent mouseLocation].x, + 0,// height - FILEBAR - [NSEvent mouseLocation].y, + (int)[event windowNumber], + 0);;}); } // on this side all I have is a xtoq_context , on the library side I need @@ -245,10 +245,10 @@ dispatch_async(xtoqDispatchQueue, ^{ xtoq_button_release (rootContext, - 0, - 0, - (int)[event windowNumber], - 0);;}); + 0,//[NSEvent mouseLocation].x, + 0,//height - FILEBAR - [NSEvent mouseLocation].y, + (int)[event windowNumber], + 0);;}); } @@ -273,10 +273,9 @@ dispatch_async(xtoqDispatchQueue, ^{ xtoq_mouse_motion (rootContext, [NSEvent mouseLocation].x, - //[NSEvent mouseLocation].y, - [[NSScreen mainScreen] frame].size.height - FILEBAR - [NSEvent mouseLocation].y, - (int)[event windowNumber], - 0);;}); + height - FILEBAR - [NSEvent mouseLocation].y, + (int)[event windowNumber], + 0);;}); } - (void) makeMenu { |