summaryrefslogtreecommitdiffstats
path: root/examples/wayland/multi-output/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/multi-output/qml/main.qml')
-rw-r--r--examples/wayland/multi-output/qml/main.qml5
1 files changed, 2 insertions, 3 deletions
diff --git a/examples/wayland/multi-output/qml/main.qml b/examples/wayland/multi-output/qml/main.qml
index 65b343ae4..26e227bcf 100644
--- a/examples/wayland/multi-output/qml/main.qml
+++ b/examples/wayland/multi-output/qml/main.qml
@@ -4,7 +4,6 @@
import QtQuick
import QtWayland.Compositor
import QtWayland.Compositor.XdgShell
-import QtWayland.Compositor.WlShell
WaylandCompositor {
id: comp
@@ -50,7 +49,7 @@ WaylandCompositor {
// ![xdgshell]
XdgShell {
- onToplevelCreated: {
+ onToplevelCreated: (toplevel, xdgSurface) => {
var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } );
item.surface.activated.connect(item.raise);
}
@@ -58,7 +57,7 @@ WaylandCompositor {
// ![xdgshell]
// ![onSurfaceRequested]
- onSurfaceRequested: {
+ onSurfaceRequested: (client, id, version) => {
var surface = surfaceComponent.createObject(comp, { } );
surface.initialize(comp, client, id, version);
}