jayji pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=6b3ca899e8a60642466ddb6d7c7574b0c3ad9d9c

commit 6b3ca899e8a60642466ddb6d7c7574b0c3ad9d9c
Author: Jean Guyomarc'h <jean.guyoma...@openwide.fr>
Date:   Fri Aug 26 16:48:58 2016 +0200

    ecore_cocoa: fix fullscreen for older osx versions
    
    Tested on 10.11 and 10.9.
    
    Fixes T4395
---
 src/lib/ecore_cocoa/ecore_cocoa_window.m | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m 
b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 5908b59..bb13338 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -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
 {
    /*

-- 


Reply via email to