godot/platform/x11
Hein-Pieter van Braam e69b30b276 Fix Copy/Paste problems on X11
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 fb60f2dbe6)
2018-01-30 20:55:11 +01:00
..
export Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
context_gl_x11.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
context_gl_x11.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
crash_handler_x11.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
crash_handler_x11.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
detect.py Make separate debug symbols opt-in 2018-01-26 20:46:56 +01:00
godot_x11.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
joypad_linux.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
joypad_linux.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
key_mapping_x11.cpp Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
key_mapping_x11.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
logo.png Fixed iCCp chunk in pngs 2016-06-22 21:13:29 +02:00
os_x11.cpp Fix Copy/Paste problems on X11 2018-01-30 20:55:11 +01:00
os_x11.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
platform_config.h Add missing copyright headers and fix formatting 2018-01-05 01:22:23 +01:00
power_x11.cpp Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
power_x11.h Update copyright statements to 2018 2018-01-01 14:40:47 +01:00
SCsub Make separate debug symbols opt-in 2018-01-26 20:46:56 +01:00