diff options
author | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-17 03:59:32 +0300 |
---|---|---|
committer | Brecht Van Lommel <brechtvanlommel@gmail.com> | 2019-01-17 13:28:56 +0300 |
commit | e44a7d36f436b24e2b5ac1680f6a3f12ac6c1ff6 (patch) | |
tree | 37e863c9097628a472d94d07e171c7f46c6fe0b1 /source/blender/windowmanager/intern | |
parent | c8e75c2b00cfb7e87bcb800c9acc8f126949749d (diff) |
Fix UI not fully updating while resizing window on Windows and macOS.
This is still not fully correct, since the event loop is blocked by GHOST
and no timer events are happening for animation while the mouse is still.
But for the most part it looks ok.
Diffstat (limited to 'source/blender/windowmanager/intern')
-rw-r--r-- | source/blender/windowmanager/intern/wm_window.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/source/blender/windowmanager/intern/wm_window.c b/source/blender/windowmanager/intern/wm_window.c index 1362a37ee25..5d5be86949c 100644 --- a/source/blender/windowmanager/intern/wm_window.c +++ b/source/blender/windowmanager/intern/wm_window.c @@ -123,6 +123,7 @@ static struct WMInitStruct { /* ******** win open & close ************ */ static void wm_window_set_drawable(wmWindowManager *wm, wmWindow *win, bool activate); +static int wm_window_timer(const bContext *C); /* XXX this one should correctly check for apple top header... * done for Cocoa : returns window contents (and not frame) max size*/ @@ -1422,6 +1423,8 @@ static int ghost_event_proc(GHOST_EventHandle evt, GHOST_TUserDataPtr C_void_ptr #if defined(__APPLE__) || defined(WIN32) /* OSX and Win32 don't return to the mainloop while resize */ + wm_window_timer(C); + wm_event_do_handlers(C); wm_event_do_notifiers(C); wm_draw_update(C); |