From 2f52c23fa9d87b609bd278b1afbea05d6bdd4aac Mon Sep 17 00:00:00 2001 From: Kirill Chibisov Date: Thu, 29 Dec 2022 21:06:46 +0300 Subject: [PATCH] Fix `RedrawRequested` not emitted on Wayland in resize Fixes #2609. --- CHANGELOG.md | 1 + src/platform_impl/linux/wayland/event_loop/mod.rs | 7 +++++++ 2 files changed, 8 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 387f7e10..b4d12343 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -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. - **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` +- On Wayland, `RedrawRequested` not emitted during resize. # 0.27.5 diff --git a/src/platform_impl/linux/wayland/event_loop/mod.rs b/src/platform_impl/linux/wayland/event_loop/mod.rs index e63848b0..cf62b8d0 100644 --- a/src/platform_impl/linux/wayland/event_loop/mod.rs +++ b/src/platform_impl/linux/wayland/event_loop/mod.rs @@ -438,6 +438,13 @@ impl EventLoop { .unwrap() .refresh_frame = false; + // Queue redraw requested. + state + .window_user_requests + .get_mut(window_id) + .unwrap() + .redraw_requested = true; + physical_size });