From e84aaa3e0015efc6b92c9e18293c6089f8c9e11d Mon Sep 17 00:00:00 2001 From: Aaron Seigo Date: Mon, 29 Sep 2014 16:49:24 +0200 Subject: [PATCH] better anim --- shell/contents/views/Desktop.qml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/shell/contents/views/Desktop.qml b/shell/contents/views/Desktop.qml index b5a0c516..27803908 100644 --- a/shell/contents/views/Desktop.qml +++ b/shell/contents/views/Desktop.qml @@ -176,7 +176,7 @@ Item { } } - moveDisplaced: Transition { + removeDisplaced: Transition { SequentialAnimation { PauseAnimation { duration: 600 } NumberAnimation { properties: "x,y"; duration: 100 } @@ -202,8 +202,10 @@ Item { Component.onCompleted: { //configure the view behavior - desktop.windowType = Shell.Desktop.Window; - desktop.width = width; - desktop.height = height; + if (desktop) { + desktop.windowType = Shell.Desktop.Window; + desktop.width = width; + desktop.height = height; + } } } \ No newline at end of file