aboutsummaryrefslogtreecommitdiff
path: root/modules/visual_script/visual_script_builtin_funcs.cpp
diff options
context:
space:
mode:
authorHein-Pieter van Braam2018-01-29 00:33:57 +0100
committerHein-Pieter van Braam2018-01-30 20:55:11 +0100
commite69b30b276003966b6b63da21600b9506e20430e (patch)
tree618504fadbcf221e1340c10b86e9f034c45d7e8c /modules/visual_script/visual_script_builtin_funcs.cpp
parent99e72894a20a4349d7172be3c2ee3bb7486fa007 (diff)
downloadgodot-e69b30b276003966b6b63da21600b9506e20430e.tar.gz
godot-e69b30b276003966b6b63da21600b9506e20430e.tar.zst
godot-e69b30b276003966b6b63da21600b9506e20430e.zip
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 fb60f2dbe649c03a8357a277eccb6d06dfe07b68)
Diffstat (limited to 'modules/visual_script/visual_script_builtin_funcs.cpp')
0 files changed, 0 insertions, 0 deletions