diff options
author | Romain Perier <romain.perier@openwide.fr> | 2014-12-23 17:51:51 +0100 |
---|---|---|
committer | Cedric BAIL <cedric@osg.samsung.com> | 2015-02-05 16:38:07 +0100 |
commit | 2f6c564cc9bc86eba3bcc62c7dc181d77af42d8b (patch) | |
tree | 64bc17b6b95d0bd7a94565579f1573ebb2422a7e | |
parent | 1d18543719a98f9b4e99638c4d8f2e67720b84a2 (diff) |
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.m | 2 |
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) | |||
89 | { | 89 | { |
90 | /* An NSPeriodic event has no window (undefined behaviour) */ | 90 | /* An NSPeriodic event has no window (undefined behaviour) */ |
91 | if ([event type] == NSPeriodic) return EINA_FALSE; | 91 | if ([event type] == NSPeriodic) return EINA_FALSE; |
92 | return [[[event window] class] isKindOfClass:class]; | 92 | return [[event window] isKindOfClass:class]; |
93 | } | 93 | } |
94 | 94 | ||
95 | static inline Eina_Bool | 95 | static inline Eina_Bool |