summaryrefslogtreecommitdiff
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.qml10
1 files changed, 3 insertions, 7 deletions
diff --git a/examples/wayland/minimal-qml/main.qml b/examples/wayland/minimal-qml/main.qml
index b7bcc4ca..e1e1c18d 100644
--- a/examples/wayland/minimal-qml/main.qml
+++ b/examples/wayland/minimal-qml/main.qml
@@ -46,17 +46,13 @@ WaylandCompositor {
//! [shells]
WlShell {
- onWlShellSurfaceCreated:
- shellSurfaces.append({shellSurface: shellSurface});
+ onWlShellSurfaceCreated: (shellSurface) => shellSurfaces.append({shellSurface: shellSurface});
}
XdgShell {
- onToplevelCreated:
- shellSurfaces.append({shellSurface: xdgSurface});
+ onToplevelCreated: (toplevel, xdgSurface) => shellSurfaces.append({shellSurface: xdgSurface});
}
IviApplication {
- onIviSurfaceCreated: {
- shellSurfaces.append({shellSurface: iviSurface});
- }
+ onIviSurfaceCreated: (iviSurface) => shellSurfaces.append({shellSurface: iviSurface});
}
//! [shells]