diff options
Diffstat (limited to 'examples/wayland/multi-output/qml/main.qml')
-rw-r--r-- | examples/wayland/multi-output/qml/main.qml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/examples/wayland/multi-output/qml/main.qml b/examples/wayland/multi-output/qml/main.qml index 9e11d361..ccb3d418 100644 --- a/examples/wayland/multi-output/qml/main.qml +++ b/examples/wayland/multi-output/qml/main.qml @@ -85,10 +85,9 @@ WaylandCompositor { WlShell { id: defaultShell - onCreateShellSurface: { - var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "surface": surface } ); - item.shellSurface.initialize(defaultShell, surface, resource); - surface.activated.connect(item.raise); + onShellSurfaceCreated: { + var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": shellSurface } ); + item.surface.activated.connect(item.raise); } Component.onCompleted: { |