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:
parent
6f93a10560
commit
f2a2904978
1 changed files with 5 additions and 1 deletions
|
|
@ -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: _,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue