1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-30 05:10:03 -04:00

Apply 'with_active' option to winit (#2813)

* feat: apply 'with_active' option to winit

* fix: remove platform specification

- winit accept this option for all platforms

* build fix

---------

Co-authored-by: Emil Ernerfeldt <emil.ernerfeldt@gmail.com>
This commit is contained in:
Dixeran
2023-04-18 22:13:25 +08:00
committed by GitHub
parent af4d737c92
commit 8a2cfbd131
2 changed files with 8 additions and 0 deletions

View File

@@ -91,6 +91,7 @@ pub fn window_builder<E>(
resizable,
transparent,
centered,
active,
..
} = native_options;
@@ -104,6 +105,7 @@ pub fn window_builder<E>(
.with_resizable(*resizable)
.with_transparent(*transparent)
.with_window_icon(window_icon)
.with_active(*active)
// Keep hidden until we've painted something. See https://github.com/emilk/egui/pull/2279
// We must also keep the window hidden until AccessKit is initialized.
.with_visible(false);