summaryrefslogtreecommitdiffstats
path: root/examples/wayland/multi-output
diff options
context:
space:
mode:
Diffstat (limited to 'examples/wayland/multi-output')
-rw-r--r--examples/wayland/multi-output/qml/main.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wayland/multi-output/qml/main.qml b/examples/wayland/multi-output/qml/main.qml
index e8a30100d..3f4d7a393 100644
--- a/examples/wayland/multi-output/qml/main.qml
+++ b/examples/wayland/multi-output/qml/main.qml
@@ -66,8 +66,8 @@ WaylandCompositor {
WaylandSurface {
id: surface
signal activated()
- onMappedChanged: {
- if (isMapped && !cursorSurface) {
+ onHasContentChanged: {
+ if (hasContent && !cursorSurface) {
gridScreen.gridSurfaces.append( { "gridSurface" : surface } );
} else {
for (var i = 0; i < gridScreen.gridSurfaces.count; i++) {