Skip to content

Fix hangs on Wayland

Benjamin Otte requested to merge wip/otte/for-main into main

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.

Edited by Benjamin Otte

Merge request reports