From 2f6c564cc9bc86eba3bcc62c7dc181d77af42d8b Mon Sep 17 00:00:00 2001 From: Romain Perier Date: Tue, 23 Dec 2014 17:51:51 +0100 Subject: [PATCH] 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 --- src/lib/ecore_cocoa/ecore_cocoa.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m index d57fd06..ed7f6b0 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 -- 2.7.4