ecore_cocoa: fix fullscreen for older osx versions

Tested on 10.11 and 10.9.

Fixes T4395
This commit is contained in:
Jean Guyomarc'h 2016-08-26 16:48:58 +02:00 committed by Jean Guyomarc'h
parent 7397b9fbe9
commit 6b3ca899e8
1 changed files with 12 additions and 0 deletions

View File

@ -88,6 +88,18 @@ static NSCursor *_cursors[__ECORE_COCOA_CURSOR_LAST];
ecore_event_add(ECORE_COCOA_EVENT_WINDOW_DESTROY, event, NULL, NULL);
}
/* IS THIS OSX <= 10.10 ONLY? */
- (void)windowDidEnterFullScreen:(NSNotification *) notif EINA_UNUSED
{
[self requestResize: self.frame.size];
}
/* IS THIS OSX <= 10.10 ONLY? */
- (void)windowDidExitFullScreen:(NSNotification *) notif EINA_UNUSED
{
[self requestResize: self.frame.size];
}
- (void)windowDidResize:(NSNotification *) EINA_UNUSED notif
{
/*