Summary: | Copy paste doesn't work reliably in Xwayland -> Wayland | ||
---|---|---|---|
Product: | Wayland | Reporter: | Ilia Bozhinov <iliyabo> |
Component: | weston | Assignee: | Wayland bug list <wayland-bugs> |
Status: | RESOLVED NOTOURBUG | QA Contact: | |
Severity: | normal | ||
Priority: | medium | CC: | bugseforuns, iliyabo, jadahl |
Version: | unspecified | ||
Hardware: | x86-64 (AMD64) | ||
OS: | Linux (All) | ||
Whiteboard: | |||
i915 platform: | i915 features: |
Description
Ilia Bozhinov
2017-04-15 05:32:29 UTC
After digging around it seems that the problem is either with GTK/mutter or with weston, because when trying to copy from weston-terminal in GNOME it crashes (says "listener function for opcode 5 of wl_data_source is NULL"). (In reply to Ilia Bozhinov from comment #1) > After digging around it seems that the problem is either with GTK/mutter or > with weston, because when trying to copy from weston-terminal in GNOME it > crashes (says "listener function for opcode 5 of wl_data_source is NULL"). weston-terminal crashes? That is most likely an issue with weston-terminal and/or toytoolkit, rather than with Xwayland integration. Does it crash when copying to any client or just some? Is that happening only under mutter/gnome-shell or also under weston? The situation is the following: 1) Under weston I can't paste from, lets say, chromium(Xwayland client) or weston-terminal to any GTK app(gedit, gnome-terminal). However, I can copy-paste in the reversed direction 2) Under GNOME shell I can't even copy from weston-terminal, it crashes. I don't know whether this is related or no. But under Gnome I can paste from chromium to GTK apps, that's why I thought the bug is in weston (not the terminal crash, but the copy-paste in weston) (In reply to Ilia Bozhinov from comment #3) > The situation is the following: > > 1) Under weston I can't paste from, lets say, chromium(Xwayland client) or > weston-terminal to any GTK app(gedit, gnome-terminal). However, I can > copy-paste in the reversed direction This sounds like a weston Xwayland clipboard integration bug. > > 2) Under GNOME shell I can't even copy from weston-terminal, it crashes. I > don't know whether this is related or no. But under Gnome I can paste from > chromium to GTK apps, that's why I thought the bug is in weston (not the > terminal crash, but the copy-paste in weston) This *sounds* like a weston-terminal bug. Either weston-terminal is advertising a higher version of wl_data_device than it supports, or its implementation is missing one of the event vfunction implementation. I debugged it and found out that the problem was that xwayland clipboard exports only the "text/plain;charset=utf-8" mimetype, however GTK apps don't want to receive it for some reason. I opened a bug in gnome bugzilla, we'll see if that's their fault or not. For now I have a workaround to simply send "UTF8_STRING" mimetype as well. I think that I'm experiencing the same issue. Can you tell me the URL of the issue you made in gnome bugzilla? I tried to find, but failed. https://bugzilla.gnome.org/show_bug.cgi?id=781814 This is the GTK bug, I'll close the issue for now as the bug is not in weston, but GTK. |
Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.