diff options
author | Dominik Holland <dominik.holland@pelagicore.com> | 2016-08-30 15:23:34 +0200 |
---|---|---|
committer | Dominik Holland <dominik.holland@pelagicore.com> | 2016-09-01 08:47:32 +0000 |
commit | 9ebe067fd5b0fc62cd23117ae7b2f849da6cb336 (patch) | |
tree | 6e98b3f3aa4e8f128e1681ba4541c71a2f81f193 /sysui | |
parent | 950bda692bb68547e7e571b4ba207989fe64a806 (diff) |
Changed the compositor to handle stopping an application
The UI usually doesn't stop an application, instead just the visibility
is changed and the surface items are not deleted at all.
If an application is stopped (e.g. by stopping it using the
appman-controller) we need to make sure to first run the closing animation
before we actually release the window.
Otherwise the closing animation looks broken and we leave the window
StackView in an broken state
Change-Id: I0d184283d7b0f6b41910435e328d286ed7bb1c76
Reviewed-by: Nedim Hadzic <nedim.hadzic@pelagicore.com>
Diffstat (limited to 'sysui')
-rw-r--r-- | sysui/LaunchController.qml | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/sysui/LaunchController.qml b/sysui/LaunchController.qml index 87cafe6..a61b15c 100644 --- a/sysui/LaunchController.qml +++ b/sysui/LaunchController.qml @@ -107,12 +107,19 @@ StackView { to: 1.0 duration: popTransition.duration*.2 } - PropertyAnimation { - target: exitItem - property: "scale" - from: 1.0 - to: 0.1 - duration: popTransition.duration + + SequentialAnimation { + PropertyAnimation { + target: exitItem + property: "scale" + from: 1.0 + to: 0.1 + duration: popTransition.duration + } + + ScriptAction { + script: { exitItem.visible = false; ApplicationManagerInterface.releasingApplicationSurfaceDone(exitItem) } + } } } } |