summaryrefslogtreecommitdiffstats
path: root/winit
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-04 18:08:12 +0100
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2024-11-05 23:52:59 +0100
commit14ec3307304fbf40e7f281d2356f40456124dfef (patch)
tree617114c63e4e5355bb7ebf51426595b8b8c43f16 /winit
parentc6af79a1d06013343f9caf2de80597d627254084 (diff)
downloadiced-14ec3307304fbf40e7f281d2356f40456124dfef.tar.gz
iced-14ec3307304fbf40e7f281d2356f40456124dfef.tar.bz2
iced-14ec3307304fbf40e7f281d2356f40456124dfef.zip
Replace `reactive-rendering` feature with `unconditional-rendering`
Diffstat (limited to 'winit')
-rw-r--r--winit/Cargo.toml2
-rw-r--r--winit/src/program.rs6
2 files changed, 5 insertions, 3 deletions
diff --git a/winit/Cargo.toml b/winit/Cargo.toml
index b8f5a723..10a6369b 100644
--- a/winit/Cargo.toml
+++ b/winit/Cargo.toml
@@ -22,7 +22,7 @@ x11 = ["winit/x11"]
wayland = ["winit/wayland"]
wayland-dlopen = ["winit/wayland-dlopen"]
wayland-csd-adwaita = ["winit/wayland-csd-adwaita"]
-reactive-rendering = []
+unconditional-rendering = []
[dependencies]
iced_futures.workspace = true
diff --git a/winit/src/program.rs b/winit/src/program.rs
index d7afb969..130bf220 100644
--- a/winit/src/program.rs
+++ b/winit/src/program.rs
@@ -1051,11 +1051,13 @@ async fn run_instance<P, C>(
&mut messages,
);
- #[cfg(not(feature = "reactive-rendering"))]
+ #[cfg(feature = "unconditional-rendering")]
window.raw.request_redraw();
match ui_state {
- #[cfg(feature = "reactive-rendering")]
+ #[cfg(not(
+ feature = "unconditional-rendering"
+ ))]
user_interface::State::Updated {
redraw_request: Some(redraw_request),
} => match redraw_request {