mirror of
https://github.com/emilk/egui.git
synced 2026-06-26 22:53:14 -04:00
eframe: update the maximized/minimized viewport state each frame (#3601)
* Closes https://github.com/emilk/egui/issues/3494 This makes sure it is always up-to-date. Previously (years back) this caused a deadlock on Mac, but this seems to have been fixed
This commit is contained in:
@@ -835,6 +835,8 @@ fn update_viewport_info(viewport_info: &mut ViewportInfo, window: &Window, pixel
|
||||
viewport_info.outer_rect = outer_rect;
|
||||
viewport_info.fullscreen = Some(window.fullscreen().is_some());
|
||||
viewport_info.focused = Some(window.has_focus());
|
||||
viewport_info.minimized = window.is_minimized().or(viewport_info.minimized);
|
||||
viewport_info.maximized = Some(window.is_maximized());
|
||||
}
|
||||
|
||||
fn open_url_in_browser(_url: &str) {
|
||||
|
||||
Reference in New Issue
Block a user