summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRomain Perier <romain.perier@openwide.fr>2015-01-15 17:05:29 +0100
committerCedric BAIL <cedric@osg.samsung.com>2015-02-05 16:38:07 +0100
commit382957c2b3d7f3c200072d5b1f00423978fafec2 (patch)
tree55b4d92c4313d1baa22a9fe41288d2c789d4d582
parent2f6c564cc9bc86eba3bcc62c7dc181d77af42d8b (diff)
ecore_cocoa: add on the fly resizing support.
Until now, video_resize events was received only when application returned control to the event loop. When a window is resized dynamically a lot of video_resize events are emitted from EcoreCocoaWindow::windowDidResize and not handled immediatly, only when the main thread is back to the ecore main loop. This is why there are not refreshed window areas. Call ecore_main_loop_iterate() from windowDidResize solves the issue. Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
-rw-r--r--src/lib/ecore_cocoa/ecore_cocoa_window.m1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index dc636fdb41..754caa8c0b 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -66,6 +66,7 @@
66 event->h = size.height - 66 event->h = size.height -
67 (([self isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get()); 67 (([self isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get());
68 ecore_event_add(ECORE_COCOA_EVENT_RESIZE, event, NULL, NULL); 68 ecore_event_add(ECORE_COCOA_EVENT_RESIZE, event, NULL, NULL);
69 ecore_main_loop_iterate();
69} 70}
70 71
71@end 72@end