summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@openwide.fr>2014-12-23 17:51:51 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-05 16:38:07 +0100
commit2f6c564cc9bc86eba3bcc62c7dc181d77af42d8b (patch)
tree64bc17b6b95d0bd7a94565579f1573ebb2422a7e
parent1d18543719a98f9b4e99638c4d8f2e67720b84a2 (diff)
downloadefl-2f6c564cc9bc86eba3bcc62c7dc181d77af42d8b.tar.gz
ecore_cocoa: fix _nsevent_window_is_type_of() type check
isKindOfClass should receive an instance of a class and a class as arguments and not two class. It fixes Mouse events sent to a window on OSX. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index d57fd06482..ed7f6b02ae 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -89,7 +89,7 @@ _nsevent_window_is_type_of(NSEvent *event, Class class)
{
/* An NSPeriodic event has no window (undefined behaviour) */
if ([event type] == NSPeriodic) return EINA_FALSE;
- return [[[event window] class] isKindOfClass:class];
+ return [[event window] isKindOfClass:class];
}
static inline Eina_Bool