Make the comment explaining wayland polling more detailed

This commit is contained in:
Kovid Goyal 2020-01-23 15:08:54 +05:30
parent 748ca81d4b
commit 1b5daf930a
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

2
glfw/wl_window.c vendored
View File

@ -788,6 +788,8 @@ handleEvents(monotonic_t timeout)
// we pass in wayland_read_events to ensure that the above wl_display_prepare_read call
// is followed by either wl_display_cancel_read or wl_display_read_events
// before any events/timers are dispatched. This allows other wayland functions
// to be called in the event/timer handlers without causing a deadlock
bool display_read_ok = pollForEvents(&_glfw.wl.eventLoopData, timeout, wayland_read_events);
EVDBG("display_read_ok: %d", display_read_ok);
if (display_read_ok) {