From 05a986bf4a299d549c53c4153908945440601c27 Mon Sep 17 00:00:00 2001 From: Johan Klokkhammer Helsing Date: Wed, 25 Oct 2017 13:18:41 +0200 Subject: Fix broken minimal-qml example The example didn't work because XdgShellV6 was added in 1.1 and we imported 1.0. Also, xdgSurface is the shell surface in the toplevelCreated signal. Change-Id: Idf64745e39d50a6b2f8df696ba890890ef14af50 Reviewed-by: Pier Luigi Fiorini --- examples/wayland/minimal-qml/main.qml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'examples/wayland/minimal-qml/main.qml') diff --git a/examples/wayland/minimal-qml/main.qml b/examples/wayland/minimal-qml/main.qml index 693ea5c81..0f0ca61bc 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.0 +import QtWayland.Compositor 1.1 WaylandCompositor { // The output defines the screen. @@ -84,7 +84,7 @@ WaylandCompositor { } XdgShellV6 { onToplevelCreated: - shellSurfaces.append({shellSurface: toplevel}); + shellSurfaces.append({shellSurface: xdgSurface}); } ListModel { id: shellSurfaces } } -- cgit v1.2.3