From 65ad364fef618158e452a798c224be82e9e62651 Mon Sep 17 00:00:00 2001 From: cutefishd Date: Tue, 20 Apr 2021 13:43:06 +0800 Subject: [PATCH] Fix app icon geometry --- qml/AppItem.qml | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/qml/AppItem.qml b/qml/AppItem.qml index bad8ca8..bef288f 100644 --- a/qml/AppItem.qml +++ b/qml/AppItem.qml @@ -15,6 +15,16 @@ DockItem { draggable: model.appId === "cutefish-launcher" ? false : true dragItemIndex: index + onXChanged: { + if (windowCount > 0) + updateGeometry() + } + + onYChanged: { + if (windowCount > 0) + updateGeometry() + } + onWindowCountChanged: { if (windowCount > 0) updateGeometry()