NSPoint event_location = [event locationInWindow];\r
NSPoint pt = [view convertPoint:event_location fromView:nil];\r
\r
- int w = [view frame].size.width;\r
int h = [view frame].size.height;\r
int x = pt.x;\r
int y = h - pt.y;\r
\r
- if (y <= 0 || x <= 0 || y > h || x > w)\r
- return;\r
-\r
Ecore_Event_Mouse_Button * ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));\r
if (!ev) return;\r
\r
- ev->x = pt.x;\r
+ ev->x = x;\r
ev->y = y;\r
ev->root.x = ev->x;\r
ev->root.y = ev->y;\r
NSPoint event_location = [event locationInWindow];\r
NSPoint pt = [view convertPoint:event_location fromView:nil];\r
\r
- int w = [view frame].size.width;\r
int h = [view frame].size.height;\r
int x = pt.x;\r
int y = h - pt.y;\r
\r
- if (y <= 0 || x <= 0 || y > h || x > w)\r
- return;\r
-\r
Ecore_Event_Mouse_Button * ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));\r
if (!ev) return;\r
\r
- ev->x = pt.x;\r
+ ev->x = x;\r
ev->y = y;\r
ev->root.x = ev->x;\r
ev->root.y = ev->y;\r