summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorpierre lamot <pierre.lamot@openwide.fr>2015-10-23 18:18:39 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-02 20:15:59 +0100
commitc3f40bd0f99637b611fceaca01aa76e73174d1dc (patch)
tree7ad76a624fd9f15cee96d1f9f4bff1cb8b04f68a
parent0c9011d9e0bd23ef6f8b7137328e461dbf9a0e0a (diff)
ecore_cocoa: prevent mouse event loss when clicking in titlebar
fix
-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