summaryrefslogtreecommitdiff
path: root/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
diff options
context:
space:
mode:
authorThiep Ha <thiepha@gmail.com>2016-03-15 08:15:05 +0900
committerThiep Ha <thiepha@gmail.com>2016-03-15 08:15:05 +0900
commit9c204eb36970c72d254c5f42818dbe24f9a47451 (patch)
tree3b5f448ce753fd447896ed9544a40740f52154a1 /src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
parent0ff7429ea741ad651acf9cb6cc79b7529ab19b9d (diff)
ecore_evas_cocoa: correct focus handlers
Focus handlers are set incorrectly. It causes windows process focus when they are acttually unfocused. This patch corrects it. Signed-off-by: Thiep Ha <thiepha@gmail.com>
Diffstat (limited to '')
-rw-r--r--src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
index 2fc1914783..7c705992fd 100644
--- a/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
+++ b/src/modules/ecore_evas/engines/cocoa/ecore_evas_cocoa.c
@@ -289,10 +289,10 @@ _ecore_evas_cocoa_init(void)
289 289
290 ecore_evas_event_handlers[0] = 290 ecore_evas_event_handlers[0] =
291 ecore_event_handler_add(ECORE_COCOA_EVENT_WINDOW_UNFOCUSED, 291 ecore_event_handler_add(ECORE_COCOA_EVENT_WINDOW_UNFOCUSED,
292 _ecore_evas_cocoa_event_got_focus, NULL); 292 _ecore_evas_cocoa_event_lost_focus, NULL);
293 ecore_evas_event_handlers[1] = 293 ecore_evas_event_handlers[1] =
294 ecore_event_handler_add(ECORE_COCOA_EVENT_WINDOW_FOCUSED, 294 ecore_event_handler_add(ECORE_COCOA_EVENT_WINDOW_FOCUSED,
295 _ecore_evas_cocoa_event_lost_focus, NULL); 295 _ecore_evas_cocoa_event_got_focus, NULL);
296 ecore_evas_event_handlers[2] = 296 ecore_evas_event_handlers[2] =
297 ecore_event_handler_add(ECORE_COCOA_EVENT_WINDOW_RESIZE_REQUEST, 297 ecore_event_handler_add(ECORE_COCOA_EVENT_WINDOW_RESIZE_REQUEST,
298 _ecore_evas_cocoa_event_window_resize, NULL); 298 _ecore_evas_cocoa_event_window_resize, NULL);