c78257e8b0
When we need to poll the XCB connection with a non-trivial timeout, be very careful to not hit an XCB bug where a poll() may hang for too long even if an event is ready in the special event queue. This is a pragmatic workaround, a wait_for_special_event_with_timeout() is the only proper solution here. Signed-off-by: Hans-Kristian Arntzen <post@arntzen-software.no> Reviewed-by: Michel Dänzer <mdaenzer@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/19279>