diff options
author | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2021-05-11 12:07:59 +0200 |
---|---|---|
committer | Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io> | 2021-05-19 14:35:16 +0200 |
commit | fccffffe0d9f0163ddde3081063272e5a6d735e6 (patch) | |
tree | 729ee37adc855e16444e29742bbbfdae27ab294b /examples | |
parent | 85ad5d5cab2bb95b15cd17bdd5480cff1cf06373 (diff) | |
download | qtwayland-fccffffe0d9f0163ddde3081063272e5a6d735e6.tar.gz |
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')
-rw-r--r-- | examples/wayland/pure-qml/qml/Chrome.qml | 4 |
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 acef044a..d9ff038c 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(); } } |