not-fl3 / miniquad

Cross platform rendering in Rust
Apache License 2.0
1.54k stars 173 forks source link

Fix linux_x11 block_on_wait #458

Open bolphen opened 3 months ago

bolphen commented 3 months ago

Currently for the linux_x11 backend, if block_on_wait is true, the main thread will be blocked until the next event. So if an event in this frame requests an update, the frame will not be updated until the next event (this happens for example for the mouse_button_up event sent by the touchscreen).

I think the correct behavior should be raise the count (to 1) only if there's no event in the current frame.