aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>2016-08-26 16:48:58 +0200
committerJean Guyomarc'h <jean@guyomarch.bzh>2016-08-26 19:38:57 +0200
commit6b3ca899e8a60642466ddb6d7c7574b0c3ad9d9c (patch)
treec062236a46f1b36f61b9e924befe9534029bb918 /src
parentecore_cocoa: refactor resizing request (diff)
downloadefl-6b3ca899e8a60642466ddb6d7c7574b0c3ad9d9c.tar.gz
ecore_cocoa: fix fullscreen for older osx versions
Tested on 10.11 and 10.9. Fixes https://phab.enlightenment.org/T4395
Diffstat (limited to 'src')
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index 5908b596cb..bb133387b3 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
{
/*