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)
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];
88 ecore_event_add(ECORE_COCOA_EVENT_WINDOW_DESTROY, event, NULL, NULL); 88 ecore_event_add(ECORE_COCOA_EVENT_WINDOW_DESTROY, event, NULL, NULL);
89} 89}
90 90
91/* IS THIS OSX <= 10.10 ONLY? */
92- (void)windowDidEnterFullScreen:(NSNotification *) notif EINA_UNUSED
93{
94 [self requestResize: self.frame.size];
95}
96
97/* IS THIS OSX <= 10.10 ONLY? */
98- (void)windowDidExitFullScreen:(NSNotification *) notif EINA_UNUSED
99{
100 [self requestResize: self.frame.size];
101}
102
91- (void)windowDidResize:(NSNotification *) EINA_UNUSED notif 103- (void)windowDidResize:(NSNotification *) EINA_UNUSED notif
92{ 104{
93 /* 105 /*