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.qml16
1 files changed, 7 insertions, 9 deletions
diff --git a/examples/wayland/multi-output/qml/main.qml b/examples/wayland/multi-output/qml/main.qml
index 6a1483bca..e8a30100d 100644
--- a/examples/wayland/multi-output/qml/main.qml
+++ b/examples/wayland/multi-output/qml/main.qml
@@ -81,18 +81,16 @@ WaylandCompositor {
}
}
- extensions: [
- WlShell {
- id: defaultShell
+ WlShell {
+ id: defaultShell
- onShellSurfaceCreated: {
- var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": shellSurface } );
- item.surface.activated.connect(item.raise);
- }
+ onWlShellSurfaceCreated: {
+ var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": shellSurface } );
+ item.surface.activated.connect(item.raise);
}
- ]
+ }
- onCreateSurface: {
+ onSurfaceRequested: {
var surface = surfaceComponent.createObject(comp, { } );
surface.initialize(comp, client, id, version);
}