bevy/crates/bevy_winit/src
ira f69f1329e0 Fix Window feedback loop between the OS and Bevy (#7517)
# Objective

Fix #7377
Fix #7513

## Solution

Record the changes made to the Bevy `Window` from `winit` as 'canon' to avoid Bevy sending those changes back to `winit` again, causing a feedback loop.

## Changelog

* Removed `ModifiesWindows` system label.
  Neither `despawn_window` nor `changed_window` actually modify the `Window` component so all the `.after(ModifiesWindows)` shouldn't be necessary.
* Moved `changed_window` and `despawn_window` systems to `CoreStage::Last` to avoid systems making changes to the `Window` between `changed_window` and the end of the frame as they would be ignored.

## Migration Guide
The `ModifiesWindows` system label was removed.


Co-authored-by: devil-ira <justthecooldude@gmail.com>
2023-02-07 14:18:13 +00:00
..
converters.rs update winit to 0.28 (#7480) 2023-02-03 16:41:39 +00:00
lib.rs Fix Window feedback loop between the OS and Bevy (#7517) 2023-02-07 14:18:13 +00:00
system.rs Fix Window feedback loop between the OS and Bevy (#7517) 2023-02-07 14:18:13 +00:00
web_resize.rs Windows as Entities (#5589) 2023-01-19 00:38:28 +00:00
winit_config.rs Docs: App::run() might never return; effect of WinitSettings::return_from_run. (#7228) 2023-01-18 23:02:38 +00:00
winit_windows.rs update winit to 0.28 (#7480) 2023-02-03 16:41:39 +00:00