From 9ab08b8337cf6856c8174c2233103af24ef0cfac Mon Sep 17 00:00:00 2001 From: jneem Date: Sun, 28 Jun 2020 15:01:05 -0500 Subject: [PATCH] Call update after running commands in the idle handler. (#1062) --- CHANGELOG.md | 2 ++ druid/src/win_handler.rs | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 51929045a3..6a48909ec8 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,6 +26,7 @@ You can find its changes [documented below](#060---2020-06-01). - macOS: Timers not firing during modal loop. ([#1028] by [@xStrom]) - GTK: Directory selection now properly ignores file filters. ([#957] by [@xStrom]) - GTK: Don't crash when receiving an external command while a file dialog is visible. ([#1043] by [@jneem]) +- Ensure that `update` is called after all commands. ([#1062] by [@jneem]) ### Visual @@ -340,6 +341,7 @@ Last release without a changelog :( [#1043]: https://github.com/linebender/druid/pull/1043 [#1050]: https://github.com/linebender/druid/pull/1050 [#1054]: https://github.com/linebender/druid/pull/1054 +[#1062]: https://github.com/linebender/druid/pull/1062 [Unreleased]: https://github.com/linebender/druid/compare/v0.6.0...master [0.6.0]: https://github.com/linebender/druid/compare/v0.5.0...v0.6.0 diff --git a/druid/src/win_handler.rs b/druid/src/win_handler.rs index f13de75cc6..af5234d38a 100644 --- a/druid/src/win_handler.rs +++ b/druid/src/win_handler.rs @@ -485,7 +485,7 @@ impl AppState { match token { RUN_COMMANDS_TOKEN => { self.process_commands(); - self.inner.borrow_mut().invalidate_and_finalize(); + self.inner.borrow_mut().do_update(); } EXT_EVENT_IDLE_TOKEN => { self.process_ext_events();