godot/platform/linuxbsd
PouleyKetchoupp 2c4d64102a Fix general keyboard input lag on X11 display server
This change makes keyboard inputs more responsive on Linux, especially
when the FPS is lower on slower configurations.

Polling events from the x server is done on a separate thread to avoid a
frame delay with inputs, due to first sending the event to the input
manager with XFilterEvent then processing the new event only on the next
frame.

Calls to Input Manager functions like XSetICFocus, XUnsetICFocus and
XSetICValues use a mutex, because they are polling events internally and
would otherwise interfere with our own thread process for polling events
which can cause a deadlock in some cases.

XUnsetICFocus is called instead of XSetICFocus on FocusOut events,
so the input manager can be properly notified of focus changes.

clipboard_get now uses a blocking call to poll for a specific event type
when waiting for a SelectionNotify event, instead of polling all events
and filtering them afterwards.
2020-09-24 16:01:41 +02:00
..
export Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
context_gl_x11.cpp Style: Enforce separation line between function definitions 2020-05-14 16:54:55 +02:00
context_gl_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
crash_handler_linuxbsd.cpp [Complex Test Layouts] Change String to use UTF-32 encoding on all platforms. 2020-09-03 19:56:24 +03:00
crash_handler_linuxbsd.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
detect.py Add window click-through support. 2020-09-17 12:36:18 +03:00
detect_prime_x11.cpp Style: clang-format: Disable AllowShortIfStatementsOnASingleLine 2020-05-10 13:12:16 +02:00
detect_prime_x11.h Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
display_server_x11.cpp Fix general keyboard input lag on X11 display server 2020-09-24 16:01:41 +02:00
display_server_x11.h Fix general keyboard input lag on X11 display server 2020-09-24 16:01:41 +02:00
godot_linuxbsd.cpp t Add unit testing to Godot using DocTest and added to GitHub Actions CI 2020-07-24 13:05:33 +01:00
joypad_linux.cpp Update Linux gamepad detection to match SDL. 2020-07-22 10:17:39 +01:00
joypad_linux.h Rename InputFilter back to Input 2020-04-28 15:19:49 +02:00
key_mapping_x11.cpp Style: Enforce braces around if blocks and loops 2020-05-14 21:57:34 +02:00
key_mapping_x11.h Port member initialization from constructor to declaration (C++11) 2020-05-14 10:01:56 +02:00
logo.png Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
os_linuxbsd.cpp Port ClassDB tests to use doctest 2020-08-16 16:41:02 +03:00
os_linuxbsd.h Port ClassDB tests to use doctest 2020-08-16 16:41:02 +03:00
pck_embed.ld Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
pck_embed.legacy.ld Effective DisplayServer separation, rename X11 -> LinuxBSD 2020-03-26 15:49:34 +01:00
platform_config.h Linux/BSD: Fix support for NetBSD 2020-09-18 10:27:55 +02:00
platform_linuxbsd_builders.py SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
SCsub SCons: Format buildsystem files with psf/black 2020-03-30 09:05:53 +02:00
vulkan_context_x11.cpp Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00
vulkan_context_x11.h Style: clang-format: Disable KeepEmptyLinesAtTheStartOfBlocks 2020-05-14 16:54:55 +02:00