summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2015-10-13 17:09:28 +0200
committerNicolas Aguirre <aguirre.nicolas@gmail.com>2015-11-10 08:32:49 +0100
commitf1679e259a2497a3b6ef7ae04ff51688061b3f98 (patch)
tree3ef4d84a4def11ae7309b1f38449ad64e2a47742
parent14775bc8c4b634bd0dd1b46faf4b0c1fa4e5815f (diff)
ecore_cocoa: don't track NSAppKitDefined event
Currently, it was used only to get track of focus, howver focus was already handled (and better) in ecore_cocoa_window (with NSWindowDelegate). This led to the LOST_FOCUS event to be posted twice, with different values, which messed up the focus stack. @fix
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa.m31
1 files changed, 0 insertions, 31 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa.m b/src/lib/ecore_cocoa/ecore_cocoa.m
index 69dfdc4341..a4811813ab 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa.m
@@ -289,37 +289,6 @@ ecore_cocoa_feed_events(void *anEvent)
289 289
290 break; 290 break;
291 } 291 }
292 case NSAppKitDefined:
293 {
294 if ([event subtype] == NSApplicationActivatedEventType)
295 {
296 Ecore_Cocoa_Event_Window *ev;
297
298 ev = malloc(sizeof(Ecore_Cocoa_Event_Window));
299 if (!ev)
300 {
301 pass = EINA_FALSE;
302 break;
303 }
304 ev->wid = [event window];
305 ecore_event_add(ECORE_COCOA_EVENT_GOT_FOCUS, ev, NULL, NULL);
306 }
307 else if ([event subtype] == NSApplicationDeactivatedEventType)
308 {
309 Ecore_Cocoa_Event_Window *ev;
310
311 ev = malloc(sizeof(Ecore_Cocoa_Event_Window));
312 if (!ev)
313 {
314 pass = EINA_FALSE;
315 break;
316 }
317 ev->wid = [event window];
318 ecore_event_add(ECORE_COCOA_EVENT_LOST_FOCUS, ev, NULL, NULL);
319 }
320 pass = EINA_TRUE; // pass along AppKit events, for window manager
321 break;
322 }
323 case NSScrollWheel: 292 case NSScrollWheel:
324 { 293 {
325 DBG("Scroll Wheel"); 294 DBG("Scroll Wheel");