rust-windowing / winit

Window handling library in pure Rust
https://docs.rs/winit/
Apache License 2.0
4.89k stars 914 forks source link

Missing X11 FocusIn event #3892

Closed rodrigorc closed 1 week ago

rodrigorc commented 3 months ago

This PR fixes #2841.

Also it adds and extra commit that synthesizes a FocusIn event if ever the window receives a keyboard event while unfocused, that should not happen, but it does happen sometimes.

Feel free to comment on those two commits separately, if you prefer that.

rodrigorc commented 3 weeks ago

Hi! This seems to have stalled a bit.

I think adding two unrelated "fixes" to the focus was a mistake. I'm rewriting the PR to just include the fix for #2841, that should be easier to merge.