wayland: ensure external loop is notified with pump_events

Spawn a thread when pump_events is used, so the external thread will
get woken-up correctly. This only happens when timeout was given.

Fixes #4183.
This commit is contained in:
Kirill Chibisov 2025-04-29 11:43:36 +09:00 committed by GitHub
parent ab96fa8395
commit c8579a1882
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 112 additions and 6 deletions

View file

@ -251,3 +251,4 @@ changelog entry.
- On X11 and Wayland, fixed pump_events with `Some(Duration::Zero)` blocking with `Wait` polling mode
- On macOS, fixed `run_app_on_demand` returning without closing open windows.
- On Wayland, fixed a crash when consequently calling `set_cursor_grab` without pointer focus.
- On Wayland, ensure that external event loop is woken-up when using pump_events and integrating via `FD`.