==16491== 2,399 (2,176 direct, 223 indirect) bytes in 1 blocks are definitely lost in loss record 64 of 67
==16491== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==16491== by 0x5682D0B: xkb_context_new (in /usr/lib/x86_64-linux-gnu/libxkbcommon.so.0.0.0)
==16491== by 0x40B24B: _glfwPlatformInit (wl_init.c:556)
==16491== by 0x40612E: glfwInit (init.c:125)
==16491== by 0x4052AE: main (simple.c:49)
==15831== 368 (32 direct, 336 indirect) bytes in 1 blocks are definitely lost in loss record 60 of 70
==15831== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15831== by 0x40B21F: _glfwPlatformInit (wl_init.c:553)
==15831== by 0x40612E: glfwInit (init.c:125)
==15831== by 0x4052AE: main (simple.c:49)
==15753== 24 bytes in 1 blocks are definitely lost in loss record 22 of 71
==15753== at 0x4C2CC70: calloc (in /usr/lib/valgrind/vgpreload_memcheck-amd64-linux.so)
==15753== by 0x40BAE1: _glfwPlatformGetVideoModes (wl_monitor.c:216)
==15753== by 0x40B9D6: _glfwPlatformGetMonitors (wl_monitor.c:184)
==15753== by 0x406151: glfwInit (init.c:131)
==15753== by 0x4052AE: main (simple.c:49)
Fixed incorrect error types. Added missing error string prefixes.
Removed some invalid or superfluous error emissions. Clarified some
error strings. Joined error string lines to aid grep. Replaced some
generic error strings with specific ones. Documentation work.
Fixes#450.
The request is now only made when necessary and times out after 500ms.
This breaks our end of the protocol to work around broken
implementations at the other end.
It uses the GLFW timer instead of select, as select is not guaranteed to
update the timeout with the time remaining and a single select is not
sufficient as other events may be incoming.
Fixes#368 (mostly).
Fixes#429 (mostly).