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.
This commit is contained in:
Ian Douglas Scott 2025-03-21 12:57:28 -07:00
parent 6f93a10560
commit f2a2904978

View file

@ -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: _,