mirror of
https://github.com/godotengine/godot.git
synced 2024-11-12 23:24:26 +00:00
e69b30b276
The target of the TARGETS type should be XA_ATOM and not XA_TARGETS when
requested. Since we are sending a number of ATOMS the size should be set
to the integer size and not the char size.
The size field of the atoms is also the number of atoms and not the size
of the array. This caused some clients to wrongly interpret the data and
read garbage in the X11 packet.
I also add the more modern representation for UTF-8 and clarify the
error message if a client attempts to request a type we don't know
about.
This fixes #10431
(cherry picked from commit
|
||
---|---|---|
.. | ||
export | ||
context_gl_x11.cpp | ||
context_gl_x11.h | ||
crash_handler_x11.cpp | ||
crash_handler_x11.h | ||
detect.py | ||
godot_x11.cpp | ||
joypad_linux.cpp | ||
joypad_linux.h | ||
key_mapping_x11.cpp | ||
key_mapping_x11.h | ||
logo.png | ||
os_x11.cpp | ||
os_x11.h | ||
platform_config.h | ||
power_x11.cpp | ||
power_x11.h | ||
SCsub |