diff options
author | pierre lamot <pierre.lamot@openwide.fr> | 2015-10-23 18:18:39 +0200 |
---|---|---|
committer | Nicolas Aguirre <aguirre.nicolas@gmail.com> | 2015-11-02 20:15:59 +0100 |
commit | c3f40bd0f99637b611fceaca01aa76e73174d1dc (patch) | |
tree | 7ad76a624fd9f15cee96d1f9f4bff1cb8b04f68a | |
parent | 0c9011d9e0bd23ef6f8b7137328e461dbf9a0e0a (diff) | |
download | efl-c3f40bd0f99637b611fceaca01aa76e73174d1dc.tar.gz |
ecore_cocoa: prevent mouse event loss when clicking in titlebar
fix
-rw-r--r-- | src/lib/ecore_cocoa/ecore_cocoa_window.m | 6 |
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 @@ 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; |