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.qml12
1 files changed, 7 insertions, 5 deletions
diff --git a/examples/wayland/multi-output/qml/main.qml b/examples/wayland/multi-output/qml/main.qml
index 7632eb9cf..5cde7411c 100644
--- a/examples/wayland/multi-output/qml/main.qml
+++ b/examples/wayland/multi-output/qml/main.qml
@@ -95,17 +95,19 @@ WaylandCompositor {
XdgOutputManagerV1 {}
- WlShell {
- id: defaultShell
-
- onWlShellSurfaceCreated: {
- var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": shellSurface } );
+ // ![xdgshell]
+ XdgShell {
+ onToplevelCreated: {
+ var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } );
item.surface.activated.connect(item.raise);
}
}
+ // ![xdgshell]
+ // ![onSurfaceRequested]
onSurfaceRequested: {
var surface = surfaceComponent.createObject(comp, { } );
surface.initialize(comp, client, id, version);
}
+ // ![onSurfaceRequested]
}