mirror of
https://github.com/kovidgoyal/kitty.git
synced 2024-11-14 22:57:37 +03:00
Make the comment explaining wayland polling more detailed
This commit is contained in:
parent
748ca81d4b
commit
1b5daf930a
2
glfw/wl_window.c
vendored
2
glfw/wl_window.c
vendored
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user