summaryrefslogtreecommitdiffstats
path: root/src/compositor/compositor_api/qwaylandsurface.h
diff options
context:
space:
mode:
authorPaul Olav Tvete <paul.tvete@qt.io>2017-03-16 13:59:20 +0100
committerPaul Olav Tvete <paul.tvete@qt.io>2017-03-23 13:37:00 +0000
commit1e1785c8d2b077c34a8ca1d4f93e5a75b269eac8 (patch)
treea4264362c3ef1b070da05ab46edab612d53501dc /src/compositor/compositor_api/qwaylandsurface.h
parentdfcda81c5b13ad15517a37bcc45f3bf5f550466c (diff)
Clean up draganddrop and clipboard features
Don't assume that no-draganddrop implies no-clipboard. Introduce a new private feature wayland-datadevice which contains the common functionality. This feature cannot be controlled independently, but is automatically disabled when both clipboard and draganddrop are disabled. Change-Id: I6aac09c7ee524e3b11f0a1caa4a6c62fc3f1d10f Reviewed-by: Oswald Buddenhagen <oswald.buddenhagen@qt.io> Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'src/compositor/compositor_api/qwaylandsurface.h')
-rw-r--r--src/compositor/compositor_api/qwaylandsurface.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/compositor/compositor_api/qwaylandsurface.h b/src/compositor/compositor_api/qwaylandsurface.h
index e6a16ffe1..961d200b9 100644
--- a/src/compositor/compositor_api/qwaylandsurface.h
+++ b/src/compositor/compositor_api/qwaylandsurface.h
@@ -140,7 +140,9 @@ public:
#endif
public Q_SLOTS:
+#if QT_CONFIG(clipboard)
void updateSelection();
+#endif
protected:
QWaylandSurface(QWaylandSurfacePrivate &dptr);