ecore_cocoa: fix fullscreen for older osx versions
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Fri, 26 Aug 2016 14:48:58 +0000 (16:48 +0200)
committerJean Guyomarc'h <jean@guyomarch.bzh>
Fri, 26 Aug 2016 17:38:57 +0000 (19:38 +0200)
Tested on 10.11 and 10.9.

Fixes T4395

src/lib/ecore_cocoa/ecore_cocoa_window.m

index 5908b59..bb13338 100644 (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
 {
    /*