-
Notifications
You must be signed in to change notification settings - Fork 173
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Wayland GTK] Pasting text copied from Wayland app doesn't work before you copy something from Cuda or a Xwayland app #5003
Comments
Ops, sorry, installing the Lazarus is too much, don't do it. instead you can report these 2 issues to the Lazarus bugtracker, using my demo app: it has 2 build-modes: gtk2 and qt5. Source: gtk2/qt5 binaries for your test: |
Thanks. Reported here: But I don't know if I'm the right person to do it because I don't know anything about Lazarus, I'm just a CudaText user who found a bug. |
New info: this issue is, somehow, passed in session store (or python cache? I don't know). I use Qt5 Cuda, but I have the GTK bin alongside, in the same folder, renamed to I said this issue here only affects Cuda GTK, but I just noticed it's actually a bit different: the issue is caused by launching Cuda GTK in the previous session. If this is hard to understand, I'll give examples:
So, somehow, launching Cuda GTK makes the next Cuda launch (no matter if Qt5 or GTK) affected by this bug. |
I did many tests trying to isolate the issue... Deleted settings folder, deleted all __pycache__ folders in py folder, deleted py folder... Nothing affected what I described in my previous comment. So it's not something stored in any file by CudaText. My only guess now is that is something stored in system memory cache (RAM). |
Qt5 build has some bugs, so I'm intending to use GTK instead, but GTK version also has this one bug.
Under a Wayland session, open GTK CudaText. Copy something from a Wayland app (I'm supposing you know how to check if an app is running as native Wayland or Xwayland). Try to paste it in Cuda. Nothing happens.
After you copy something from Cuda, the bug is suddenly fixed, so now you can copy again from the Wayland app and pasting to Cuda works.
Other way to "fix" the bug is by copying once from a Xwayland app. Example:
GDK_BACKEND=x11
so that it runs as Xwayland.As you noticed, step 6 (copy something from Xwayland while Cuda is open) is what fixes the issue for some reason. Copy something from Cuda itself is another other way to "fix" the issue.
Kate and SciTE were mentioned as examples. It could be any native Wayland app instead of Kate and any app running as Xwayland instead of SciTE. In fact, I noticed this bug when I tried to copy from Firefox (Wayland) right after launching Cuda. You can check if Firefox is running Wayland or Xwayland by opening about:support and checking if "Window Protocol" shows "Wayland" or "xwayland".
The text was updated successfully, but these errors were encountered: