diff --git a/crates/eframe/src/native/run.rs b/crates/eframe/src/native/run.rs index f4734988793..28aad0420b0 100644 --- a/crates/eframe/src/native/run.rs +++ b/crates/eframe/src/native/run.rs @@ -192,7 +192,9 @@ fn run_and_return( if let Some(window) = winit_app.window(*window_id) { log::trace!("request_redraw for {window_id:?}"); - window.request_redraw(); + if !window.is_minimized().unwrap_or(false) { + window.request_redraw(); + } true } else { log::trace!("No window found for {window_id:?}"); @@ -345,7 +347,9 @@ fn run_and_exit( if let Some(window) = winit_app.window(*window_id) { log::trace!("request_redraw for {window_id:?}"); - window.request_redraw(); + if !window.is_minimized().unwrap_or(false) { + window.request_redraw(); + } true } else { log::trace!("No window found for {window_id:?}");