wayland: Set EGL swap interval to 0.
authorBenjamin Otte <otte@redhat.com>
Fri, 28 Apr 2023 20:40:39 +0000 (22:40 +0200)
committerBenjamin Otte <otte@redhat.com>
Fri, 28 Apr 2023 20:40:39 +0000 (22:40 +0200)
commitb4c859c0113f8802d9c6f047dcf2b689223848da
treef98a30c32ae4a9b1c602c32bff0ad03746f54aea
parent45216e1c88285e526db825a80ccba957d4fd3533
wayland: Set EGL swap interval to 0.

There's no need for EGL to do any timing, we do it in GTK already.

This fixes hangs in Mesa when we hide a surface after a SwapBuffers()
but before the frame callback arrives.
If we then reshow the surface and immediately render to it, Mesa would
still have a frame callback from before the hiding and forever poll()
waiting for the compositor to send the callback.

Fixes #5761
gdk/wayland/gdkglcontext-wayland.c