Skip to content

Add wl_display_dispatch_queue_timeout for dispatching with a timeout

Sebastian Wick requested to merge swick/wayland:dispatch-timeout into main

Current Vulkan WSI FIFO present mode blocks indefinitely on frame callbacks and we want to have a 1hz fallback for cases where the callbacks are not coming or coming too slow. The two ways to dispatch wayland events is to either get the underlying fd and implement an event loop for it and wl_display_dispatch_queue which blocks indefinitely. This adds a new function which is the same as wl_display_dispatch_queue but takes a timeout argument.

Edited by Sebastian Wick

Merge request reports