Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-17 03:59:32 +0300
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2019-01-17 13:28:56 +0300
commite44a7d36f436b24e2b5ac1680f6a3f12ac6c1ff6 (patch)
tree37e863c9097628a472d94d07e171c7f46c6fe0b1 /source/blender/windowmanager
parentc8e75c2b00cfb7e87bcb800c9acc8f126949749d (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')
-rw-r--r--source/blender/windowmanager/intern/wm_window.c3
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);