mirror of
https://github.com/glfw/glfw.git
synced 2025-12-16 12:13:17 +00:00
wait-events: ensure libdecorReadyCallback exits WaitEvents
This commit is contained in:
parent
97fd1cd2a1
commit
bfd13bc095
@ -251,6 +251,9 @@ static void libdecorReadyCallback(void* userData,
|
|||||||
uint32_t time)
|
uint32_t time)
|
||||||
{
|
{
|
||||||
_glfw.wl.libdecor.ready = GLFW_TRUE;
|
_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);
|
assert(_glfw.wl.libdecor.callback == callback);
|
||||||
wl_callback_destroy(_glfw.wl.libdecor.callback);
|
wl_callback_destroy(_glfw.wl.libdecor.callback);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user