Skip to content

Commit

Permalink
Fix: Regarding severe graphical glitches with egui
Browse files Browse the repository at this point in the history
I work finished, Pull Request.

Regarding severe graphical glitches with egui emilk#3321

Changed :
crates/eframe/src/native/run.rs

The test results are normal.
  • Loading branch information
rustbasic committed Jan 24, 2024
1 parent 3a8e234 commit 66fa3ce
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions crates/eframe/src/native/run.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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:?}");
Expand Down Expand Up @@ -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:?}");
Expand Down

0 comments on commit 66fa3ce

Please sign in to comment.