summaryrefslogtreecommitdiff
path: root/examples/wayland
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-05-18 07:57:15 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-05-18 09:55:16 +0200
commit3d615e3df73ba1e39c88044e2e21cb89b9178212 (patch)
tree60690418e9225f9f946da46865e74d6334803ac3 /examples/wayland
parent6aab3cbba0f9df3141cafd571f621610c94eaf1c (diff)
downloadqtwayland-3d615e3df73ba1e39c88044e2e21cb89b9178212.tar.gz
Fix spanning-screens example
The spanning-screens example didn't actually offset the window contents on the bottom screen output. Tested this with 5.15 as well, and it did not work there either. Adding a parent item for offsetting the object works, so do that as an easy band-aid. Change-Id: Ie3311928531c4ab23e46fdd1fdcf5d4813fc5100 Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/wayland')
-rw-r--r--examples/wayland/spanning-screens/main.qml8
1 files changed, 6 insertions, 2 deletions
diff --git a/examples/wayland/spanning-screens/main.qml b/examples/wayland/spanning-screens/main.qml
index a13ab465..7fcb4ef9 100644
--- a/examples/wayland/spanning-screens/main.qml
+++ b/examples/wayland/spanning-screens/main.qml
@@ -100,8 +100,12 @@ WaylandCompositor {
Component {
id: chromeComponent
- ShellSurfaceItem {
- onSurfaceDestroyed: destroy()
+ Item {
+ property alias shellSurface: ssi.shellSurface
+ ShellSurfaceItem {
+ id: ssi
+ onSurfaceDestroyed: destroy()
+ }
}
}