extremely technical libwayland programming question :boosts_ok:

@kemona_halftau@sharkey.skydevs.me

Content warning: extremely technical libwayland programming question :boosts_ok:

is there a way i could have a function similar to wl_display_dispatch which also polls multiple sockets at the same time, interrupting whenever there is activity over another socket, without using another thread and signalling? or better yet, is there a way to tell which file descriptor a libwayland client is using, without having to manually connect to the wayland display from the start?

i could have an endless loop of doing
wl_display_roundtrip and doing a non-blocking poll with a small delay in between each iteration of the loop, but that just seems inefficient, and i want my launcher to have as short of a delay as possible between an ipc message and being visible on the screen