cedric pushed a commit to branch master.

http://git.enlightenment.org/core/efl.git/commit/?id=382957c2b3d7f3c200072d5b1f00423978fafec2

commit 382957c2b3d7f3c200072d5b1f00423978fafec2
Author: Romain Perier <romain.per...@openwide.fr>
Date:   Thu Jan 15 17:05:29 2015 +0100

    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 <ced...@osg.samsung.com>
---
 src/lib/ecore_cocoa/ecore_cocoa_window.m | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.m 
b/src/lib/ecore_cocoa/ecore_cocoa_window.m
index dc636fd..754caa8 100644
--- a/src/lib/ecore_cocoa/ecore_cocoa_window.m
+++ b/src/lib/ecore_cocoa/ecore_cocoa_window.m
@@ -66,6 +66,7 @@
    event->h = size.height -
       (([self isFullScreen] == YES) ? 0 : ecore_cocoa_titlebar_height_get());
    ecore_event_add(ECORE_COCOA_EVENT_RESIZE, event, NULL, NULL);
+   ecore_main_loop_iterate();
 }
 
 @end

-- 


Reply via email to