diff options
Diffstat (limited to 'examples/wayland/pure-qml/qml')
-rw-r--r-- | examples/wayland/pure-qml/qml/main.qml | 15 |
1 files changed, 5 insertions, 10 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index d20ea10fd..9ea92313f 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -42,13 +42,12 @@ import QtQuick 2.0 import QtWayland.Compositor 1.0 WaylandCompositor { - id: compositor + id: comp property var primarySurfacesArea: null - Component { - id: screenComponent - Screen { } + Screen { + compositor: comp } Component { @@ -80,12 +79,8 @@ WaylandCompositor { ] onCreateSurface: { - var surface = surfaceComponent.createObject(compositor, { } ); - surface.initialize(compositor, client, id, version); - - } + var surface = surfaceComponent.createObject(comp, { } ); + surface.initialize(comp, client, id, version); - Component.onCompleted: { - screenComponent.createObject(compositor, { "outputSpace" : defaultOutputSpace } ); } } |