ecore_cocoa: fix live resize of windows 04/82904/3
authorJean Guyomarc'h <jean.guyomarch@openwide.fr>
Fri, 16 Oct 2015 08:19:57 +0000 (10:19 +0200)
committerHermet Park <chuneon.park@samsung.com>
Fri, 2 Sep 2016 03:04:43 +0000 (20:04 -0700)
commit168f83ebbda8aaa37a86df7e4b5793ef31ef2eaa
treebc740d9cf3af8ff20c50b373b0a13cc99eb39185
parent482167ea65a460cfb85b46db28931dbbee3a6a45
ecore_cocoa: fix live resize of windows

This was a tricky little bastard!
When a window is live resized, the NSWindow which is the target of
the live resize will wait for a kevent from the window manager,
until live resizing is done. So... live resizing is synchronous
and blocks the main thread... hence ecore_main_loop.

- When live resize starts, the Ecore_Timer which polls NSRunLoop
is paused.
- When the window is resized, the ecore_main_loop is run manually
with ecore_main_loop_iterate() to process Ecore events (mostly
Ecore_Evas)
- When live resize finished, the Ecore_Timer which polls NSRunLoop
is resumed.

@fix

Change-Id: I926f619cb0cb14533d968456db6861db759331df
Signed-off-by: Cedric BAIL <cedric@osg.samsung.com>
src/lib/ecore_cocoa/ecore_cocoa_app.h
src/lib/ecore_cocoa/ecore_cocoa_app.m
src/lib/ecore_cocoa/ecore_cocoa_window.m