godotengine / godot

Godot Engine – Multi-platform 2D and 3D game engine
https://godotengine.org
MIT License
88.96k stars 20.18k forks source link

Inconsistent Copy Behavior in Script Editor when Using Wayland Display Driver #95649

Open dekotale opened 1 month ago

dekotale commented 1 month ago

Tested versions

System information

Godot v4.3.stable - openSUSE Tumbleweed-Slowroll 20240803 - Wayland - GLES3 (Compatibility) - AMD Radeon RX 6800 XT (radeonsi, navi21, LLVM 18.1.8, DRM 3.57, 6.10.3-1-default) - AMD Ryzen 7 7700X 8-Core Processor (16 Threads). GNOME 46.2 DE.

Issue description

When using the --display-driver wayland flag in Godot, there is an inconsistent behavior when copying text from the script editor. The first copy action works as expected, but the second attempt to copy fails. When you try to paste the content nothing sticks, but if you copy something again and try to paste it, then yes... it's like the “even” times you copy don't work, but the “odd” times work.

Steps to reproduce

  1. Launch Godot with the --display-driver wayland flag.
  2. Open any script in the script editor.
  3. Select some text and copy it using Ctrl+C or right click > copy (first copy should works).
  4. Paste the text in anywhere and check. (the text must have been pasted correctly)
  5. Copy the text one more time (this copy will fail)
  6. Paste the text in anywhere and check. (no text should have been pasted)

Minimal reproduction project (MRP)

mrp_copy_behaviour.zip

DanielKinsman commented 1 month ago

I can reproduce this when using GNOME, but not when using KDE.

dekotale commented 4 weeks ago

I can reproduce this when using GNOME, but not when using KDE.

Right, I forgot to mention that my desktop environment is GNOME 46... I didn't remember to try another DE. I'll add this information, thank you very much @DanielKinsman

reamicku commented 4 weeks ago

I can confirm the same behavior on GNOME 46.4

esklarski commented 3 weeks ago

I thought at first I was going crazy and forgetting to press ctrl-c when trying to copy text; when I'd then use ctrl-v there would be no text on the clipboard.

But it does seem there's something wrong with copy/paste when using the editor under Wayland.

I too am on Gnome 46.