diff options
author | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-06-05 11:29:25 +0200 |
---|---|---|
committer | Jean Guyomarc'h <jean@guyomarch.bzh> | 2016-06-05 12:12:02 +0200 |
commit | 266396b1eb6d5ddca135caaaf596184afb9b4f03 (patch) | |
tree | a79dd573ee642941ebcda191cc575e7d4a82c4f6 /src/lib/ecore_cocoa/ecore_cocoa_window.h | |
parent | 7bb32abf330c41981d2dae472ff313950ce73a9a (diff) |
ecore_cocoa: fix main loop handling
Pffff... another tricky one...
-windowDidResize is actually also called when the window is not
resize by the user, leading to multiple event posting, and of
course the infamous call of ecore_main_loop_iterate() when it
was not paused at all, leading to messy events handling... the
most visible being the initial resizing of the window going rogue.
We now ensure with -windowWillStartLiveResize and -windowDidEndLiveResize
that we only send an event when the user requested it. Since the main
loop is paused at this point, calling ecore_main_loop_iterate()
becomes safe.
Fixes T3648
Diffstat (limited to '')
-rw-r--r-- | src/lib/ecore_cocoa/ecore_cocoa_window.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/ecore_cocoa/ecore_cocoa_window.h b/src/lib/ecore_cocoa/ecore_cocoa_window.h index 911c729ab8..a30240fc69 100644 --- a/src/lib/ecore_cocoa/ecore_cocoa_window.h +++ b/src/lib/ecore_cocoa/ecore_cocoa_window.h | |||
@@ -2,7 +2,8 @@ | |||
2 | 2 | ||
3 | @interface EcoreCocoaWindow: NSWindow <NSWindowDelegate> | 3 | @interface EcoreCocoaWindow: NSWindow <NSWindowDelegate> |
4 | { | 4 | { |
5 | void *ecore_window_data; | 5 | void *ecore_window_data; |
6 | int _live_resize; | ||
6 | } | 7 | } |
7 | 8 | ||
8 | @property (nonatomic, assign) void *ecore_window_data; | 9 | @property (nonatomic, assign) void *ecore_window_data; |