summaryrefslogtreecommitdiffstats
path: root/examples/qwidget-compositor
diff options
context:
space:
mode:
authorJan Arne Petersen <jan.petersen@kdab.com>2013-08-27 00:13:32 +0200
committerJan Arne Petersen <jan.petersen@kdab.com>2013-09-09 14:15:51 +0200
commit9bbfb94ccd7d7d9c8fc0de377d914149283e4d7b (patch)
tree6e3c2a79c360ff5a080de398f024942932dc9df8 /examples/qwidget-compositor
parent330c429991ef1c32ffdd51cdc8627ef1b71604b3 (diff)
Allow to customize enabled compositor extensions
Add an ExtensionFlag enum to QWaylandCompositor and allow to specify extensions to enable via the constructor. Change-Id: If1a691232134034ba4055a9ed280bc211dcaebe8 Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
Diffstat (limited to 'examples/qwidget-compositor')
-rw-r--r--examples/qwidget-compositor/main.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/qwidget-compositor/main.cpp b/examples/qwidget-compositor/main.cpp
index 0c115166c..81d561f7e 100644
--- a/examples/qwidget-compositor/main.cpp
+++ b/examples/qwidget-compositor/main.cpp
@@ -69,7 +69,7 @@ class QWidgetCompositor : public QWidget, public WaylandCompositor
Q_OBJECT
public:
QWidgetCompositor()
- : QWaylandCompositor(windowHandle())
+ : QWaylandCompositor(windowHandle(), 0, static_cast<ExtensionFlag>(DefaultExtensions | SubSurfaceExtension))
#ifdef QT_COMPOSITOR_WAYLAND_GL
, m_surfaceCompositorFbo(0)
, m_textureBlitter(0)
@@ -79,7 +79,6 @@ public:
, m_dragSourceSurface(0)
, m_cursorSurface(0)
{
- enableSubSurfaceExtension();
setMouseTracking(true);
setRetainedSelectionEnabled(true);
m_background = QImage(QLatin1String(":/background.jpg"));