diff options
Diffstat (limited to 'examples/wayland/pure-qml/qml/main.qml')
-rw-r--r-- | examples/wayland/pure-qml/qml/main.qml | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml index 77ed3ecd9..7bf2a623c 100644 --- a/examples/wayland/pure-qml/qml/main.qml +++ b/examples/wayland/pure-qml/qml/main.qml @@ -83,29 +83,15 @@ WaylandCompositor { } } - property variant viewsBySurface: ({}) - XdgShellV5 { onXdgSurfaceCreated: { - var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } ); - viewsBySurface[xdgSurface.surface] = item; - } - onXdgPopupCreated: { - var parentView = viewsBySurface[xdgPopup.parentSurface]; - var item = chromeComponent.createObject(parentView, { "shellSurface": xdgPopup } ); - viewsBySurface[xdgPopup.surface] = item; + chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } ); } } XdgShellV6 { onToplevelCreated: { - var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } ); - viewsBySurface[xdgSurface.surface] = item; - } - onPopupCreated: { - var parentView = viewsBySurface[popup.parentXdgSurface.surface]; - var item = chromeComponent.createObject(parentView, { "shellSurface": xdgSurface } ); - viewsBySurface[xdgSurface.surface] = item; + chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } ); } } |