forked from enlightenment/efl
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 Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
This commit is contained in:
parent
566184078a
commit
25a44cc9d8
|
@ -289,37 +289,6 @@ ecore_cocoa_feed_events(void *anEvent)
|
|||
|
||||
break;
|
||||
}
|
||||
case NSAppKitDefined:
|
||||
{
|
||||
if ([event subtype] == NSApplicationActivatedEventType)
|
||||
{
|
||||
Ecore_Cocoa_Event_Window *ev;
|
||||
|
||||
ev = malloc(sizeof(Ecore_Cocoa_Event_Window));
|
||||
if (!ev)
|
||||
{
|
||||
pass = EINA_FALSE;
|
||||
break;
|
||||
}
|
||||
ev->wid = [event window];
|
||||
ecore_event_add(ECORE_COCOA_EVENT_GOT_FOCUS, ev, NULL, NULL);
|
||||
}
|
||||
else if ([event subtype] == NSApplicationDeactivatedEventType)
|
||||
{
|
||||
Ecore_Cocoa_Event_Window *ev;
|
||||
|
||||
ev = malloc(sizeof(Ecore_Cocoa_Event_Window));
|
||||
if (!ev)
|
||||
{
|
||||
pass = EINA_FALSE;
|
||||
break;
|
||||
}
|
||||
ev->wid = [event window];
|
||||
ecore_event_add(ECORE_COCOA_EVENT_LOST_FOCUS, ev, NULL, NULL);
|
||||
}
|
||||
pass = EINA_TRUE; // pass along AppKit events, for window manager
|
||||
break;
|
||||
}
|
||||
case NSScrollWheel:
|
||||
{
|
||||
DBG("Scroll Wheel");
|
||||
|
|
Loading…
Reference in New Issue