File tree Expand file tree Collapse file tree 2 files changed +19
-23
lines changed Expand file tree Collapse file tree 2 files changed +19
-23
lines changed Original file line number Diff line number Diff line change 1
- diff --git a/crates/bevy_winit/src/lib.rs b/crates/bevy_winit/src/lib.rs
2
- index 63d79b1d2..83ed56293 100644
3
- --- a/crates/bevy_winit/src/lib.rs
4
- +++ b/crates/bevy_winit/src/lib.rs
5
- @@ -429,6 +429,12 @@ fn handle_winit_event(
1
+ diff --git a/crates/bevy_winit/src/state.rs b/crates/bevy_winit/src/state.rs
2
+ index c256f5492..ae065111b 100644
3
+ --- a/crates/bevy_winit/src/state.rs
4
+ +++ b/crates/bevy_winit/src/state.rs
5
+ @@ -198,6 +198,12 @@ impl<T: Event> ApplicationHandler<T> for WinitAppRunnerState<T> {
6
+ }
7
+ }
6
8
7
- runner_state.window_event_received = true;
8
-
9
- + window_resized.send(WindowResized {
10
- + window,
11
- + width: win.width(),
12
- + height: win.height(),
13
- + });
9
+ + window_resized.send(WindowResized {
10
+ + window,
11
+ + width: win.width(),
12
+ + height: win.height(),
13
+ + });
14
14
+
15
- match event {
16
- WindowEvent::Resized(size) => {
17
- react_to_resize(&mut win, size, &mut window_resized, window);
15
+ match event {
16
+ WindowEvent::Resized(size) => {
17
+ react_to_resize(&mut win, size, &mut window_resized, window);
Original file line number Diff line number Diff line change 1
1
diff --git a/crates/bevy_winit/src/winit_config.rs b/crates/bevy_winit/src/winit_config.rs
2
- index f2cb424ec..e68e01de0 100644
2
+ index 104384086..6e3c8dd83 100644
3
3
--- a/crates/bevy_winit/src/winit_config.rs
4
4
+++ b/crates/bevy_winit/src/winit_config.rs
5
- @@ -31,14 +31 ,7 @@ impl WinitSettings {
5
+ @@ -29,10 +29 ,7 @@ impl WinitSettings {
6
6
///
7
7
/// Use the [`EventLoopProxy`](crate::EventLoopProxy) to request a redraw from outside bevy.
8
8
pub fn desktop_app() -> Self {
9
9
- WinitSettings {
10
- - focused_mode: UpdateMode::Reactive {
11
- - wait: Duration::from_secs(5),
12
- - },
13
- - unfocused_mode: UpdateMode::ReactiveLowPower {
14
- - wait: Duration::from_secs(60),
15
- - },
10
+ - focused_mode: UpdateMode::reactive(Duration::from_secs(5)),
11
+ - unfocused_mode: UpdateMode::reactive_low_power(Duration::from_secs(60)),
16
12
- }
17
13
+ Self::default()
18
14
}
You can’t perform that action at this time.
0 commit comments