Skip to content

Commit eb8de36

Browse files
atlv24mockersf
andauthored
Cleanup bevy winit (#11489)
# Objective Get #11257 changes merged. I rewrote them one by one checking each to ensure correctness. In particular, the window rescale logic changes to accomodate mut app access are double checked. Not all changes have been included as some of bevy_winit has since changed, and i am not confident including them. Namely, the `run_app_update_if_should` change. ### Notes to reviewers Review commits individually, use the "Hide whitespaces" diff display mode. ## Changelog * `bevy::window::WindowMoved`'s `entity` field has been renamed to `window` ## Migration Guide `bevy::window::WindowMoved`'s `entity` field has been renamed to `window`. This is to be more consistent with other windowing events. Consider changing usage: ```diff -window_moved.entity +window_moved.window ``` --------- Co-authored-by: François <[email protected]>
1 parent dad379c commit eb8de36

File tree

3 files changed

+433
-624
lines changed

3 files changed

+433
-624
lines changed

crates/bevy_window/src/event.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -332,7 +332,7 @@ pub enum FileDragAndDrop {
332332
)]
333333
pub struct WindowMoved {
334334
/// Window that moved.
335-
pub entity: Entity,
335+
pub window: Entity,
336336
/// Where the window moved to in physical pixels.
337337
pub position: IVec2,
338338
}

0 commit comments

Comments
 (0)