summaryrefslogtreecommitdiffstats
path: root/examples/wayland/pure-qml/qml/main.qml
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/pure-qml/qml/main.qml')
-rw-r--r--examples/wayland/pure-qml/qml/main.qml17
1 files changed, 17 insertions, 0 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml
index ac8dde712..65ac36166 100644
--- a/examples/wayland/pure-qml/qml/main.qml
+++ b/examples/wayland/pure-qml/qml/main.qml
@@ -57,6 +57,12 @@ WaylandCompositor {
}
Component {
+ id: xdgChromeComponent
+ XdgChrome {
+ }
+ }
+
+ Component {
id: surfaceComponent
WaylandSurface {
}
@@ -82,6 +88,17 @@ WaylandCompositor {
initialize();
}
},
+ XdgShell {
+ id: xdgShell
+
+ onXdgSurfaceCreated: {
+ xdgChromeComponent.createObject(defaultOutput.surfaceArea, { "xdgSurface": xdgSurface } );
+ }
+
+ Component.onCompleted: {
+ initialize();
+ }
+ },
TextInputManager {
Component.onCompleted: {
initialize();