summaryrefslogtreecommitdiff
path: root/scene/gui/tree.h
diff options
context:
space:
mode:
authorPouleyKetchoupp <pouleyketchoup@gmail.com>2020-09-25 16:40:04 +0200
committerPouleyKetchoupp <pouleyketchoup@gmail.com>2020-09-25 16:40:04 +0200
commit5a0376f96930c667c64573bc61b09e062541d5da (patch)
treea02f04c452960ad80b8abd36ae1c20f3f73fd2e5 /scene/gui/tree.h
parent2c4d64102af61474f8a56db2c347f50ce1629c61 (diff)
Fix delay to process clipboard content from Godot in other programs
When pasting clipboard content from Godot to other applications, multiple SelectionRequest events are sent to Godot in order to access the data. It could take a long time before the data is ready for the other app because events were processed one by one on the main thread, especially when Godot is unfocused and runs at low frequency. With this change, SelectionRequest events are directly handled on the separate event polling thread to minimize this delay. This change also replaces clipboard_get() calls in SelectionRequest with a direct access to internal_clipboard, since in this case we know Godot is the owner of the clipboard content and it's not necessary to query the x server for it.
Diffstat (limited to 'scene/gui/tree.h')
0 files changed, 0 insertions, 0 deletions