glfw/src
Camilla Löwy 7f752c17c6 X11: Fix glfwWaitEvents* ignoring joystick events
The data available on the X11 connection may be a reply or an internal
event for an X11 extension.  Previously the check for whether an event
was available for us was done outside waitForEvent.  This prevented data
available on other file descriptors from breaking the outer wait loop.

This commit moves the check for whether an event is available into the
wait functions, where there is enough knowledge to limit the check to
the X11 connection.

Related to #932

(cherry picked from commit 87970b7f26)
2022-03-13 16:13:34 +01:00
..
CMakeLists.txt Add custom target for updating gamepad mappings 2021-08-03 16:00:30 +02:00
cocoa_init.m Cocoa: Fix console apps getting a dock icon 2021-02-10 18:17:16 +01:00
cocoa_joystick.h Add gamepad mapping filtering by backend 2021-08-03 16:01:03 +02:00
cocoa_joystick.m Use the correct type in a for loop 2019-12-31 23:10:29 +01:00
cocoa_monitor.m Cocoa: Use MACH_PORT_NULL for default IOKit port 2021-11-24 23:01:46 +01:00
cocoa_platform.h Cocoa: Clarify comments on compatibility macros 2022-02-15 21:25:42 +01:00
cocoa_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
cocoa_window.m Cocoa: Fix deprecation warning for kUTTypeURL 2022-02-15 21:24:03 +01:00
context.c Move single/double-buffer filtering to backends 2021-06-15 18:07:28 +02:00
egl_context.c X11: Fix sonames for loaded libraries on OpenBSD 2022-02-15 20:36:11 +01:00
egl_context.h EGL: Use EGL_EXT_present_opaque when available 2021-12-24 01:51:24 +01:00
glfw3.pc.in Move to the modern CMake project version option 2019-05-19 18:30:58 +02:00
glfw3Config.cmake.in Include imported targets into module config file 2016-02-02 06:00:18 +01:00
glfw_config.h.in Wayland: Require xkbcommon 0.5.0 or greater 2022-02-15 21:20:28 +01:00
glx_context.c GLX: Fix context creation failing unnecessarily 2022-03-13 15:42:22 +01:00
glx_context.h Remove blank line before the end of some structs 2021-10-28 12:14:58 +02:00
init.c Clean up internal Unicode code point handling 2022-02-15 21:08:17 +01:00
input.c Clean up internal Unicode code point handling 2022-02-15 21:08:17 +01:00
internal.h Clean up internal Unicode code point handling 2022-02-15 21:08:17 +01:00
linux_joystick.c Convert some declarations to C99 style 2019-07-16 14:38:26 +02:00
linux_joystick.h Add gamepad mapping filtering by backend 2021-08-03 16:01:03 +02:00
mappings.h Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
mappings.h.in Simplify parsing of default gamepad mappings 2021-08-27 17:13:12 +02:00
monitor.c Make monitor and joystick names static strings 2021-06-09 18:37:31 +02:00
nsgl_context.h Cocoa: Clarify comments on compatibility macros 2022-02-15 21:25:42 +01:00
nsgl_context.m Fix context API checks in native access functions 2021-10-28 12:29:57 +02:00
null_init.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_joystick.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_joystick.h Fix -Wextra-semi warnings 2019-11-05 17:59:15 +01:00
null_monitor.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
null_platform.h Fix -Wextra-semi warnings 2019-11-05 17:59:15 +01:00
null_window.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
osmesa_context.c X11: Fix sonames for loaded libraries on OpenBSD 2022-02-15 20:36:11 +01:00
osmesa_context.h Remove blank line before the end of some structs 2021-10-28 12:14:58 +02:00
posix_thread.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
posix_thread.h Remove blank line before the end of some structs 2021-10-28 12:14:58 +02:00
posix_time.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
posix_time.h Remove blank line before the end of some structs 2021-10-28 12:14:58 +02:00
vulkan.c X11: Fix sonames for loaded libraries on OpenBSD 2022-02-15 20:36:11 +01:00
wgl_context.c Fix context API checks in native access functions 2021-10-28 12:29:57 +02:00
wgl_context.h Remove blank line before the end of some structs 2021-10-28 12:14:58 +02:00
win32_init.c Win32: Remove timeGetTime fallback for timer 2021-10-28 12:24:38 +02:00
win32_joystick.c Win32: Fix VS /W4 compile warnings 2020-06-02 19:01:15 +02:00
win32_joystick.h Add gamepad mapping filtering by backend 2021-08-03 16:01:03 +02:00
win32_monitor.c Win32: Fix bad content scale on monitor disconnect 2021-12-08 20:05:32 +01:00
win32_platform.h Win32: Remove timeGetTime fallback for timer 2021-10-28 12:24:38 +02:00
win32_thread.c Add C dialect reminders to each source file 2019-05-27 16:33:22 +02:00
win32_time.c Win32: Remove timeGetTime fallback for timer 2021-10-28 12:24:38 +02:00
win32_window.c Clean up internal Unicode code point handling 2022-02-15 21:08:17 +01:00
window.c Add tracking of single-/double-buffering 2021-06-15 18:04:05 +02:00
wl_init.c Wayland: Fix error type for allocation failure 2022-03-13 15:37:39 +01:00
wl_monitor.c Make monitor and joystick names static strings 2021-06-09 18:37:31 +02:00
wl_platform.h Wayland: Fix text input not following key repeat 2022-02-15 21:22:26 +01:00
wl_window.c Wayland: Clean up monitor scale update 2022-03-13 15:39:58 +01:00
x11_init.c X11: Fix sonames for loaded libraries on OpenBSD 2022-02-15 20:36:11 +01:00
x11_monitor.c Fix typos 2020-06-30 17:09:55 +02:00
x11_platform.h Remove blank line before the end of some structs 2021-10-28 12:14:58 +02:00
x11_window.c X11: Fix glfwWaitEvents* ignoring joystick events 2022-03-13 16:13:34 +01:00
xkb_unicode.c Clean up internal Unicode code point handling 2022-02-15 21:08:17 +01:00
xkb_unicode.h Clean up internal Unicode code point handling 2022-02-15 21:08:17 +01:00