From f2a290497877cb210b15defa706bb07080f3ef53 Mon Sep 17 00:00:00 2001 From: Ian Douglas Scott Date: Fri, 21 Mar 2025 12:57:28 -0700 Subject: [PATCH] Filter `WaylandEvent::RequestResize` events out of subscriptions There seems to be a flood of this event. Probably shouldn't be? In any case, we don't use this event so we don't need to call `.update()` with it. --- src/main.rs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index 7b98493..8046ecd 100644 --- a/src/main.rs +++ b/src/main.rs @@ -634,7 +634,11 @@ impl Application for App { let events = iced::event::listen_with(|evt, _, _| { if let iced::Event::PlatformSpecific(iced::event::PlatformSpecific::Wayland(evt)) = evt { - Some(Msg::WaylandEvent(evt)) + if !matches!(evt, WaylandEvent::RequestResize) { + Some(Msg::WaylandEvent(evt)) + } else { + None + } } else if let iced::Event::Keyboard(iced::keyboard::Event::KeyReleased { key: Key::Named(Named::Escape), modifiers: _,