diff options
author | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-05-16 10:03:21 +0200 |
---|---|---|
committer | Laszlo Agocs <laszlo.p.agocs@nokia.com> | 2011-05-18 13:38:37 +0200 |
commit | 735902e897235b61166d9b9dc14c7737298bdb2e (patch) | |
tree | 081c279d0b6dd642e09ce361e27a4fd04714c298 /examples/qwidget-compositor | |
parent | 509b45c49915ce92e7c0656ebbe920fb8904858f (diff) |
Add an optional retained selection mode to the compositor.
Enabling this feature will cause the server to retrieve all data
for all mime types as soon as a selection is activated. This data
is then used as a backup, to keep the selection and the offer
working even after the app holding the current selection exits.
Reviewed-by: Samuel Rødal
Diffstat (limited to 'examples/qwidget-compositor')
-rw-r--r-- | examples/qwidget-compositor/main.cpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp index b9d5d8fe4..861139bd0 100644 --- a/examples/qwidget-compositor/main.cpp +++ b/examples/qwidget-compositor/main.cpp @@ -65,6 +65,7 @@ class QWidgetCompositor : public QWidget, public WaylandCompositor public: QWidgetCompositor() : WaylandCompositor(this), m_dragSurface(0) { setMouseTracking(true); + setRetainedSelectionEnabled(true); m_background = QImage(QLatin1String("background.jpg")); //make sure we get the window id and create the glcontext //so that clients can successfully initialize egl |