diff options
Diffstat (limited to 'examples/wayland/pure-qml/qml/main.qml')
-rw-r--r-- | examples/wayland/pure-qml/qml/main.qml | 9 |
1 files changed, 2 insertions, 7 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index 61b88574d..0fe92668a 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -66,7 +66,7 @@ WaylandCompositor { } onCreateShellSurface: { - var item = chromeComponent.createObject(primaryOutput.surfaceArea, { "surface": surface } ); + var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "surface": surface } ); var shellSurface = shellSurfaceComponent.createObject(); shellSurface.initialize(defaultShell, surface, item.view, client, id); } @@ -77,12 +77,7 @@ WaylandCompositor { } ] - function addScreen() { - var screen = screenComponent.createObject(0, { "outputSpace" : primaryOutputSpace } ); - } - Component.onCompleted: { - addScreen(WaylandOutput.PrimaryOutput); + screenComponent.createObject(0, { "outputSpace" : defaultOutputSpace } ); } - } |