Bug 394765 - Paste doesn't work in libreoffice with wayland
Summary: Paste doesn't work in libreoffice with wayland
Status: RESOLVED FIXED
Alias: None
Product: kwayland-integration
Classification: Plasma
Component: general (show other bugs)
Version: unspecified
Platform: Arch Linux Linux
: NOR normal
Target Milestone: ---
Assignee: Martin Flöser
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-05-27 20:21 UTC by Olivier Becquaert
Modified: 2019-03-09 16:33 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Olivier Becquaert 2018-05-27 20:21:56 UTC
Paste is not working on up to date archlinux/wayland/KDE installation.
(libreoffice-fresh 6.0.4-1).

it used to work with my previous archlinux/X/KDE installation.

regards
Olivier
Comment 1 Olivier Becquaert 2018-06-02 06:44:54 UTC
It appears it doesn't work with Calligra either.
Comment 2 Alexander Mentyu 2018-06-27 06:43:02 UTC
Related bug https://bugs.kde.org/show_bug.cgi?id=395313
Comment 3 Patrick Silva 2018-10-17 20:20:25 UTC
I can't paste text copied from kate running under X11 (started with 'QT_QPA_PLATFORM=xcb kate') into lo writer running natively on Wayland or vice-versa. Context menu of the destination app shows enabled "Paste" entry but it does not work. I use libre office 6.1.2.1, kate 18.08.2.

Operating System: Arch Linux 
KDE Plasma Version: 5.14.1
Qt Version: 5.12.0 beta2
KDE Frameworks Version: 5.51.0
Comment 4 Roman Gilg 2019-02-19 11:24:35 UTC
Git commit 6e08fb2fa5f6f2d03d9ad5ef74519295357c6ba2 by Roman Gilg.
Committed on 19/02/2019 at 11:24.
Pushed by romangilg into branch 'master'.

[xwl] Generic X selections translation mechanism with Clipboard support

Summary:
In this patch an infrastructure is created to represent generic X selections
in a Wayland session and use them for data transfers between Xwayland windows
and Wayland native clients.

The central manager is the DataBridge class, in which Selection objects can be
created. This is hard-coded and such a Selection object persists until the end
of the session, so no arbitrary selections can be created on the fly. For now
the X Clipboard selection is supported, whose corresponding mechanism in the
Wayland protocol is just called Selection.

A Selection object listens for selection owner changes on the X side and for
similar events into the Wayland server interfaces. If a data provider is
available a selection source object is created by the Selection object. In case
data is requested on the other side, a data transfer is initialized by creating
a Transfer object. A Selection keeps track of all transfers and makes sure that
they are destroyed when they are finished or in case they idle because of
misbehaving clients.

The Clipboard class translates the X Clipboard via a proxy window. Selection
changes on the Wayland side are listened to through a new signal on the active
KWayland seat interface.

The previously used X clipboard syncer helper is disabled. The clipboard sync
autotest is changed to the new mechanism.
Related: bug 395313

Test Plan: Manually and clipboard sync autotest.

Reviewers: #kwin

Subscribers: zzag, graesslin, kwin

Tags: #kwin

Differential Revision: https://phabricator.kde.org/D15061

M  +21   -2    CMakeLists.txt
M  +8    -0    atoms.cpp
M  +8    -0    atoms.h
M  +1    -1    autotests/integration/CMakeLists.txt
M  +4    -0    autotests/integration/kwin_wayland_test.cpp
M  +17   -7    autotests/integration/xclipboardsync_test.cpp
M  +4    -0    main_wayland.cpp
M  +18   -5    wayland_server.cpp
M  +15   -0    wayland_server.h
A  +179  -0    xwl/clipboard.cpp     [License: GPL (v2)]
C  +29   -24   xwl/clipboard.h [from: xwl/xwayland.h - 053% similarity]
A  +106  -0    xwl/databridge.cpp     [License: GPL (v2)]
A  +86   -0    xwl/databridge.h     [License: GPL (v2)]
A  +358  -0    xwl/selection.cpp     [License: GPL (v2)]
A  +138  -0    xwl/selection.h     [License: GPL (v2)]
A  +314  -0    xwl/selection_source.cpp     [License: GPL (v2)]
A  +155  -0    xwl/selection_source.h     [License: GPL (v2)]
A  +506  -0    xwl/transfer.cpp     [License: GPL (v2)]
A  +198  -0    xwl/transfer.h     [License: GPL (v2)]
M  +29   -0    xwl/xwayland.cpp
M  +17   -0    xwl/xwayland.h

https://commits.kde.org/kwin/6e08fb2fa5f6f2d03d9ad5ef74519295357c6ba2
Comment 5 Patrick Silva 2019-02-25 23:14:28 UTC
Is the fix already available on neon dev unstable?
Situation described in comment 3 is still happening.
Comment 6 Christoph Feck 2019-03-09 09:19:29 UTC
Patrick, please re-open, if this is still happening.
Comment 7 Patrick Silva 2019-03-09 16:33:05 UTC
really it's fixed \o/

Operating System: KDE neon Developer Edition
KDE Plasma Version: 5.15.80
KDE Frameworks Version: 5.56.0
Qt Version: 5.12.0