summaryrefslogtreecommitdiffstats
path: root/examples/wayland/pure-qml
diff options
context:
space:
mode:
authorEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-05-11 12:07:59 +0200
committerEskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>2021-05-19 14:35:16 +0200
commitfccffffe0d9f0163ddde3081063272e5a6d735e6 (patch)
tree729ee37adc855e16444e29742bbbfdae27ab294b /examples/wayland/pure-qml
parent85ad5d5cab2bb95b15cd17bdd5480cff1cf06373 (diff)
Fix activation animation in Pure QML example
It is actually the toplevel interface that has the activated state in XdgShell. Due to this, the activation animation would never run, even when XdgShell was in use. Change-Id: Ic939d360ad6790cbe6a1656c44cf515ed09f697c Reviewed-by: Paul Olav Tvete <paul.tvete@qt.io>
Diffstat (limited to 'examples/wayland/pure-qml')
-rw-r--r--examples/wayland/pure-qml/qml/Chrome.qml4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/wayland/pure-qml/qml/Chrome.qml b/examples/wayland/pure-qml/qml/Chrome.qml
index acef044ad..d9ff038c0 100644
--- a/examples/wayland/pure-qml/qml/Chrome.qml
+++ b/examples/wayland/pure-qml/qml/Chrome.qml
@@ -72,13 +72,13 @@ ShellSurfaceItem {
]
Connections {
- target: shellSurface
+ target: shellSurface.toplevel !== undefined ? shellSurface.toplevel : null
// some signals are not available on wl_shell, so let's ignore them
ignoreUnknownSignals: true
function onActivatedChanged() { // xdg_shell only
- if (shellSurface.activated) {
+ if (shellSurface.toplevel.activated) {
receivedFocusAnimation.start();
}
}