summaryrefslogtreecommitdiff
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
parent7397b9fbe9d9fb3b810c287de8d48051c368bd8b (diff)
downloadefl-6b3ca899e8a60642466ddb6d7c7574b0c3ad9d9c.tar.gz
ecore_cocoa: fix fullscreen for older osx versions
Tested on 10.11 and 10.9. Fixes T4395
-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
{
/*