summaryrefslogtreecommitdiffstats
path: root/src/client/qwaylandprimaryselectionv1.cpp
diff options
context:
space:
mode:
authorQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-26 03:06:36 +0200
committerQt Forward Merge Bot <qt_forward_merge_bot@qt-project.org>2019-10-26 03:06:36 +0200
commit3c5a3654c1f68cd7ee7e801ab098510ebc6a9071 (patch)
tree69e425ccc47b575d50e232b21208109ed0ddf925 /src/client/qwaylandprimaryselectionv1.cpp
parent3d161cef55eacafc4495e3ba0bcb86089c544dc1 (diff)
parent137966a6293b50f6b248d130a2e36e67df49335e (diff)
Merge remote-tracking branch 'origin/5.14' into 5.15
Diffstat (limited to 'src/client/qwaylandprimaryselectionv1.cpp')
-rw-r--r--src/client/qwaylandprimaryselectionv1.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/client/qwaylandprimaryselectionv1.cpp b/src/client/qwaylandprimaryselectionv1.cpp
index 3ddf6dac3..832f96780 100644
--- a/src/client/qwaylandprimaryselectionv1.cpp
+++ b/src/client/qwaylandprimaryselectionv1.cpp
@@ -96,6 +96,15 @@ QWaylandPrimarySelectionDeviceV1::~QWaylandPrimarySelectionDeviceV1()
destroy();
}
+void QWaylandPrimarySelectionDeviceV1::invalidateSelectionOffer()
+{
+ if (!m_selectionOffer)
+ return;
+
+ m_selectionOffer.reset();
+ QGuiApplicationPrivate::platformIntegration()->clipboard()->emitChanged(QClipboard::Selection);
+}
+
void QWaylandPrimarySelectionDeviceV1::setSelectionSource(QWaylandPrimarySelectionSourceV1 *source)
{
if (source) {