Summary: | Copying from GTK applications in Wayland does not work | ||
---|---|---|---|
Product: | [Frameworks and Libraries] frameworks-kwayland | Reporter: | Michal Srb <michalsrb> |
Component: | server | Assignee: | Martin Flöser <mgraesslin> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugseforuns, fabian, nate |
Priority: | NOR | ||
Version: | 5.45.0 | ||
Target Milestone: | --- | ||
Platform: | Other | ||
OS: | Linux | ||
URL: | https://phabricator.kde.org/D13535 | ||
Latest Commit: | https://commits.kde.org/kwayland/0e580ae9bdc5bef0c845d58e7c647bfac05364aa | Version Fixed In: | |
Attachments: |
Do not cancel old clipboard selection if it is same as the new one.
WAYLAND_DEBUG=1 log, CTRL+C in kate vs gedit |
Description
Michal Srb
2018-06-14 12:32:38 UTC
Created attachment 113312 [details]
WAYLAND_DEBUG=1 log, CTRL+C in kate vs gedit
I imported the patch to phab: https://phabricator.kde.org/D13535 Git commit 0e580ae9bdc5bef0c845d58e7c647bfac05364aa by Fabian Vogt, on behalf of Michal Srb. Committed on 21/06/2018 at 14:42. Pushed by fvogt into branch 'master'. Do not cancel old clipboard selection if it is same as the new one. Summary: GTK applications seem to call wl_data_device::set_selection multiple times with the same wl_data_source object, replacing it with itself. If we cancel it, they will destroy it and the selection will be gone. With this patch it is again possible to copy from GTK applications. Test Plan: Patch provided by the reporter, he reported success. Reviewers: #plasma, #frameworks, romangg Reviewed By: #plasma, romangg Subscribers: michalsrb, romangg, graesslin, kde-frameworks-devel Tags: #frameworks Differential Revision: https://phabricator.kde.org/D13535 M +6 -0 autotests/client/test_datadevice.cpp M +3 -0 src/server/datadevice_interface.cpp https://commits.kde.org/kwayland/0e580ae9bdc5bef0c845d58e7c647bfac05364aa |