From d0f0477435725fab60c90b646d195870853ff795 Mon Sep 17 00:00:00 2001 From: keith Date: Sat, 15 Feb 2020 18:02:43 -0800 Subject: [PATCH] queue redraw on window event --- src/window.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/src/window.rs b/src/window.rs index 13d230c..ce79e53 100644 --- a/src/window.rs +++ b/src/window.rs @@ -102,6 +102,7 @@ pub fn ui_loop() { for event in event_pump.poll_iter() { match event { Event::Quit {..} => break 'running, + Event::Window {..} => REDRAW_SCHEDULER.queue_next_frame(), Event::KeyDown { keycode: Some(keycode), keymod: modifiers, .. } => { if let Some((key_text, special)) = parse_keycode(keycode) { let will_text_input =