summaryrefslogtreecommitdiffstats
path: root/examples/wayland
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@qt.io>2017-11-18 15:20:42 +0100
committerShawn Rutledge <shawn.rutledge@qt.io>2017-11-20 07:08:38 +0000
commit00390ccf893aa02c8f51e0887624455c7e8d111d (patch)
tree109d43528183f07056ce03ce3e40fe920b45832a /examples/wayland
parentcdcd6e5b729b64bef35faf293cff6731cd9eb832 (diff)
pure-qml example: fix position of XdgShellV6 popups
Menus open up at the right place this way. Change-Id: Iae18fdcefe33356e9e9ee105b9f5c597bb6c896b Reviewed-by: Johan Helsing <johan.helsing@qt.io>
Diffstat (limited to 'examples/wayland')
-rw-r--r--examples/wayland/pure-qml/qml/main.qml3
1 files changed, 1 insertions, 2 deletions
diff --git a/examples/wayland/pure-qml/qml/main.qml b/examples/wayland/pure-qml/qml/main.qml
index 9ed4acd2..77ed3ecd 100644
--- a/examples/wayland/pure-qml/qml/main.qml
+++ b/examples/wayland/pure-qml/qml/main.qml
@@ -104,9 +104,8 @@ WaylandCompositor {
}
onPopupCreated: {
var parentView = viewsBySurface[popup.parentXdgSurface.surface];
- var item = chromeComponent.createObject(defaultOutput.surfaceArea, { "shellSurface": xdgSurface } );
+ var item = chromeComponent.createObject(parentView, { "shellSurface": xdgSurface } );
viewsBySurface[xdgSurface.surface] = item;
- //TODO: set popup position
}
}