summaryrefslogtreecommitdiff
path: root/src/lib/ecore_cocoa
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/ecore_cocoa')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index e3df62c81b..53137a0a84 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -122,6 +122,12 @@
122 int x = pt.x; 122 int x = pt.x;
123 int y = h - pt.y; 123 int y = h - pt.y;
124 124
125 //we ignore left click in titlebar as it is handled by the OS (to move window)
126 //and the corresponding mouseUp event isn't sent
127 if (y <= 0 && [event buttonNumber] == 0) {
128 return;
129 }
130
125 Ecore_Event_Mouse_Button * ev = calloc(1, sizeof(Ecore_Event_Mouse_Button)); 131 Ecore_Event_Mouse_Button * ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
126 if (!ev) return; 132 if (!ev) return;
127 133