Whoa! Found a fix for the super old flickering window bug!

This commit is contained in:
casey langen 2017-03-09 18:14:39 -08:00
parent 5d2a3bcc2e
commit ccee62cca5

View File

@ -232,8 +232,11 @@ void App::Run(ILayoutPtr layout) {
this->CheckShowOverlay();
this->EnsureFocusIsValid();
Window::WriteToScreen(this->state.input);
/* note that order is important here! dispatch pending messages first,
because they may muck around with layout, then redraw the window. if
done in the reverse order, the user may observe more flicker. */
Window::MessageQueue().Dispatch();
Window::WriteToScreen(this->state.input);
}
overlays.Clear();