summaryrefslogtreecommitdiff
path: root/examples/wayland/hwlayer-compositor/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/hwlayer-compositor/main.qml')
-rw-r--r--examples/wayland/hwlayer-compositor/main.qml5
1 files changed, 3 insertions, 2 deletions
diff --git a/examples/wayland/hwlayer-compositor/main.qml b/examples/wayland/hwlayer-compositor/main.qml
index 2f6a5f0d..b4f088c9 100644
--- a/examples/wayland/hwlayer-compositor/main.qml
+++ b/examples/wayland/hwlayer-compositor/main.qml
@@ -51,7 +51,7 @@
import QtQuick 2.6
import QtQuick.Window 2.2
import QtQuick.Controls 2.2
-import QtWayland.Compositor 1.2
+import QtWayland.Compositor 1.3
WaylandCompositor {
WaylandOutput {
@@ -155,6 +155,7 @@ WaylandCompositor {
function addShellSurface(shellSurface) {
shellSurfaces.append({shSurface: shellSurface, animatePosition: false, animateOpacity: false, level: 0});
}
- WlShell { onWlShellSurfaceCreated: addShellSurface(shellSurface) }
+ XdgShell { onToplevelCreated: addShellSurface(xdgSurface) }
XdgShellV6 { onToplevelCreated: addShellSurface(xdgSurface) }
+ WlShell { onWlShellSurfaceCreated: addShellSurface(shellSurface) }
}