wait-events: ensure libdecorReadyCallback exits WaitEvents

This commit is contained in:
Doug Binks 2025-11-27 13:19:55 +00:00
parent 97fd1cd2a1
commit bfd13bc095

View File

@ -251,6 +251,9 @@ static void libdecorReadyCallback(void* userData,
uint32_t time)
{
_glfw.wl.libdecor.ready = GLFW_TRUE;
// Ensure wait events returns so the ready flag can be received
_glfw.newEventsRcvd = GLFW_TRUE;
assert(_glfw.wl.libdecor.callback == callback);
wl_callback_destroy(_glfw.wl.libdecor.callback);