summaryrefslogtreecommitdiffstats
path: root/examples/wayland/minimal-qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/minimal-qml/main.qml')
-rw-r--r--examples/wayland/minimal-qml/main.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/wayland/minimal-qml/main.qml b/examples/wayland/minimal-qml/main.qml
index 85c8c5783..63ed9da5f 100644
--- a/examples/wayland/minimal-qml/main.qml
+++ b/examples/wayland/minimal-qml/main.qml
@@ -50,7 +50,7 @@
import QtQuick 2.6
import QtQuick.Window 2.2
-import QtWayland.Compositor 1.1
+import QtWayland.Compositor 1.3
WaylandCompositor {
// The output defines the screen.
@@ -75,7 +75,7 @@ WaylandCompositor {
}
}
// Extensions are additions to the core Wayland
- // protocol. We choose to support two different
+ // protocol. We choose to support three different
// shells (window management protocols). When the
// client creates a new shell surface (i.e. a window)
// we append it to our list of shellSurfaces.
@@ -87,5 +87,9 @@ WaylandCompositor {
onToplevelCreated:
shellSurfaces.append({shellSurface: xdgSurface});
}
+ XdgShell {
+ onToplevelCreated:
+ shellSurfaces.append({shellSurface: xdgSurface});
+ }
ListModel { id: shellSurfaces }
}