Commit d3f15a53 authored by Committed by Fabian VogtBrowse files
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. BUG: 395366 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