Skip to content
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

Cannot copy/paste text from Eclipse to Wayland applications #421

Closed
weberhofer opened this issue Oct 3, 2022 · 16 comments
Closed

Cannot copy/paste text from Eclipse to Wayland applications #421

weberhofer opened this issue Oct 3, 2022 · 16 comments

Comments

@weberhofer
Copy link

Eclipse should ideally prefer mimetype strings in clipboard and drag and drop targets for both
Wayland and X11, over old-style STRING and UTF8_STRING format strings. Since the wayland protocols
specify that the types passed must be mimetype strings, this results in failed clipboard operations
with other Wayland clients. Mimetype strings like text/plain and text/plain;charset=utf-8 are
widely accepted both in X11 and Wayland.

This ticket s related to https://gitlab.gnome.org/GNOME/mutter/-/issues/2448

@weberhofer
Copy link
Author

This ticket is also related to https://bugs.eclipse.org/bugs/show_bug.cgi?id=574949

@akurtakov
Copy link
Member

GTK4 SWT port is already doing so 8595995 . Do you think you can try modifying GTK3 port to do so too?

@weberhofer
Copy link
Author

@akurtakov, can you please get directly in contact with the people from Gnome via https://gitlab.gnome.org/GNOME/mutter/-/issues/2448 or https://gitlab.gnome.org/GNOME/gtk/-/issues/5217 as I'm not able to help here?

@mickaelistria mickaelistria transferred this issue from eclipse-platform/.github Oct 3, 2022
@robmv
Copy link

robmv commented Nov 28, 2022

This still is a problem even with the latest GTK 3.24.35 that includes the additional translation merged on https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5072

@ichbindannmalwegmann
Copy link

I got this from my gnome issue: https://gitlab.gnome.org/GNOME/mutter/-/issues/2536#note_1606119

@akurtakov
Copy link
Member

Same issue with KDE apps https://bugs.eclipse.org/bugs/show_bug.cgi?id=579653

@akurtakov akurtakov changed the title Cannot copy/paste text from Eclipse to GTK4 applications Cannot copy/paste text from Eclipse to Wayland applications Dec 14, 2022
@weberhofer
Copy link
Author

IMHO the problem even got worse with Eclipse 2022-12.

@lalmeras
Copy link

Same here ; Eclipse 2022-12 copy paste does not work. Same with Dbeaver 22.2.5.202211202223 (eclipse-based).

Same applications with GDK_BACKEND=x11 works fine.

@lalmeras
Copy link

After some digging : gtk 3.24.35 tries to fix this issue, but fails to do so: https://gitlab.gnome.org/GNOME/gtk/-/merge_requests/5072

Another issue that seems to be related with this issue and is merged into gtk 3.24 but not released : https://gitlab.gnome.org/GNOME/gtk/-/issues/5397

On my side, I try the proposed patch and it solves the copy issue (from eclipse/dbeaver to firefox). So gtk 3.24.36 release should improve the situation.

@ichbindannmalwegmann
Copy link

ichbindannmalwegmann commented Jan 3, 2023

Now gtk3-3.24.36-1 (https://bugzilla.redhat.com/show_bug.cgi?id=2151603) it works.

@mickaelistria
Copy link
Contributor

I confirm gtk3-3.23.36-1 fixes the issue here on my Fedora 37!

@akurtakov
Copy link
Member

Closing as this has been fixed in latest gtk3 and changing swt gtk3 clipboard implementation has to potential to destabilize things and gtk4 port has it working with the new approach already.

@derkoe
Copy link

derkoe commented Mar 19, 2023

I can still reproduce the issue with GTK 3.24.37 (Ubuntu lunar) with Eclipse 2023-03.

This only happens with non-ASCII characters (like umlauts).

The paste does work in text fields (for example in all dialogs) but it does not work in any editor.

@lemmyg
Copy link

lemmyg commented May 1, 2023

yep, same issue in Kubuntu 23.04 wayland and Eclipse 2022-03.
for example, copying any text from a KDE application to eclipse is impossible.

@weberhofer
Copy link
Author

This issue has never been resolved.

@the-snowwhite
Copy link
Contributor

@weberhofer
The: copy/paste text from Eclipse to Wayland applications is solved by updating the gtk3 library to a version equal to or higher than 3.24.36.
I have tested this on kde Neon.
Fedore 38 and Kubuntu 23.10 have this fix built in.
However there is still an issue with copying from KDE applications to eclipse in Wayland session.
So I have just opened this issue: #851

the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 7, 2023
This makes it possible to paste into a KDE/QT app from eclipse.
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 7, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 7, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 7, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 8, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 8, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 8, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
mickaelistria pushed a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 8, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 8, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 8, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
mickaelistria pushed a commit that referenced this issue Nov 8, 2023
Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 9, 2023
… to the wayland clipboard"

This reverts commit c7549d9.
akurtakov pushed a commit to akurtakov/eclipse.platform.swt that referenced this issue Nov 9, 2023
…wayland clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
iloveeclipse added a commit to iloveeclipse/eclipse.platform.swt that referenced this issue Nov 10, 2023
… to the wayland clipboard"

This reverts commit c7549d9.
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 11, 2023
…set=utf-8 to TextTransfer().

This makes it possible to paste into eclipse from a KDE/QT app in a
wayland session with gtkv3.24.33 and higher(ubuntu 22.04-LTS).
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 11, 2023
…ain;charset=utf-8 to the wayland

clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 12, 2023
…set=utf-8 to TextTransfer().

This makes it possible to paste into eclipse from a KDE/QT app in a
wayland session with gtkv3.24.33 and higher(ubuntu 22.04-LTS).
the-snowwhite added a commit to the-snowwhite/eclipse.platform.swt that referenced this issue Nov 12, 2023
…ain;charset=utf-8 to the wayland

clipboard

Enables copy from eclipse to KDE/QT apps in a wayland session(RFC-1341)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants