Fix RedrawRequested not emitted on Wayland in resize

Fixes #2609.
This commit is contained in:
Kirill Chibisov 2022-12-29 21:06:46 +03:00 committed by GitHub
parent ee88e38f13
commit 2f52c23fa9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 0 deletions

View file

@ -49,6 +49,7 @@ And please only add new entries to the top of this list, right below the `# Unre
- Enabled `doc_auto_cfg` when generating docs on docs.rs for feature labels. - Enabled `doc_auto_cfg` when generating docs on docs.rs for feature labels.
- **Breaking:** On Android, switched to using [`android-activity`](https://github.com/rib/android-activity) crate as a glue layer instead of [`ndk-glue`](https://github.com/rust-windowing/android-ndk-rs/tree/master/ndk-glue). See [README.md#Android](https://github.com/rust-windowing/winit#Android) for more details. ([#2444](https://github.com/rust-windowing/winit/pull/2444)) - **Breaking:** On Android, switched to using [`android-activity`](https://github.com/rib/android-activity) crate as a glue layer instead of [`ndk-glue`](https://github.com/rust-windowing/android-ndk-rs/tree/master/ndk-glue). See [README.md#Android](https://github.com/rust-windowing/winit#Android) for more details. ([#2444](https://github.com/rust-windowing/winit/pull/2444))
- **Breaking:** Removed support for `raw-window-handle` version `0.4` - **Breaking:** Removed support for `raw-window-handle` version `0.4`
- On Wayland, `RedrawRequested` not emitted during resize.
# 0.27.5 # 0.27.5

View file

@ -438,6 +438,13 @@ impl<T: 'static> EventLoop<T> {
.unwrap() .unwrap()
.refresh_frame = false; .refresh_frame = false;
// Queue redraw requested.
state
.window_user_requests
.get_mut(window_id)
.unwrap()
.redraw_requested = true;
physical_size physical_size
}); });