Skip to content

Conversation

@camspiers
Copy link

While developing an app with iced with a local dev environment using Niri, I noticed that until I resized the rendered iced app that nothing in iced apps was interactable. This applied to my app but also was replicated in the demos tour and bezier_tool (and likely all others).

I tracked down the issue to us not handling wgpu surface errors wgpu::SurfaceError::Outdated and wgpu::SurfaceError::Lost.

See the following Niri issue for some reports: YaLTeR/niri#1910

This change reconfigures the wgpu surface when this error is received. I wasn't sure what level to do this change, in wgpu's compositor.rs, or in winit/src/lib.rs run_instance. I guess that depends on whether this behavior should be applied to backends other than wgpu. Please advise.

@camspiers
Copy link
Author

Linking the iced discord question I raised for additional context. https://discord.com/channels/628993209984614400/1422179012368797778

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant