wayland: Uncomment support for wl_display_reconnect
Finally a self-explanatory commit! This is the commit that will enable the reconnect support currently being reviewed here: https://gitlab.freedesktop.org/wayland/wayland/-/merge_requests/283
Fixes #6213
The upstream MR was closed, is this still relevant?
Good question - @davidedmundson, is there anything from this PR we need to support the current solution for compositor handoffs?
I was curious about this just now, so I dug a bit, and @davidedmundson's branch looks very different from this PR; for posterity, the current HEAD commit is https://github.com/davidedmundson/SDL/commit/140564d577eea5f6d5a7589a6f7485df9e1ed625
I'm hoping this feature can eventually land, as it's really useful. Maybe if David can't work on it anymore, someone else can take over, starting with that commit, and get it through the finish line?
I just realized that's relying on eglBindClientWaylandDisplayWL from the extension EGL_WL_bind_client_wayland_display which doesn't exist yet (not published anywhere as far as ddg or google can tell), so I guess someone taking over would have to write an extension spec based on the behaviour of the current implementation, which is weird but not impossible... but it's definitely simpler if @davidedmundson you simply publish it :stuck_out_tongue_closed_eyes:
I did a quick read through the mesa implementation of that new function, and it looks reasonable to me :) (we have done a bunch of work around that code recently so a non-trivial rebase is needed)