captainigloo pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=c3f40bd0f99637b611fceaca01aa76e73174d1dc

commit c3f40bd0f99637b611fceaca01aa76e73174d1dc
Author: pierre lamot <pierre.la...@openwide.fr>
Date:   Fri Oct 23 18:18:39 2015 +0200

    ecore_cocoa: prevent mouse event loss when clicking in titlebar
    
      fix
---
 src/lib/ecore_cocoa/ecore_cocoa_window.m | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m 
b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index e3df62c..53137a0 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -122,6 +122,12 @@
    int x = pt.x;
    int y = h - pt.y;
 
+   //we ignore left click in titlebar as it is handled by the OS (to move 
window)
+   //and the corresponding mouseUp event isn't sent
+   if (y <= 0 && [event buttonNumber] == 0) {
+        return;
+   }
+
    Ecore_Event_Mouse_Button * ev = calloc(1, sizeof(Ecore_Event_Mouse_Button));
    if (!ev) return;
 

-- 


Reply via email to