From c9b4c6834e390f051e3137a6a45882ea8608ee9d Mon Sep 17 00:00:00 2001 From: Gregor Kleen Date: Mon, 1 Sep 2025 14:05:25 +0200 Subject: ... --- .../gkleen@sif/shell/quickshell/SystemTray.qml | 24 ++++++++++++---------- 1 file changed, 13 insertions(+), 11 deletions(-) (limited to 'accounts/gkleen@sif/shell/quickshell/SystemTray.qml') diff --git a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml index ba678138..024026a3 100644 --- a/accounts/gkleen@sif/shell/quickshell/SystemTray.qml +++ b/accounts/gkleen@sif/shell/quickshell/SystemTray.qml @@ -24,6 +24,8 @@ Item { } delegate: Item { + id: trayItemWrapper + property var trayItem: modelData property string iconSource: { let icon = trayItem && trayItem.icon @@ -47,17 +49,7 @@ Item { height: parent.height anchors.verticalCenter: parent.verticalCenter - IconImage { - anchors.centerIn: parent - width: parent.width - height: parent.width - source: parent.iconSource - asynchronous: true - smooth: true - mipmap: true - } - - MouseArea { + WrapperMouseArea { id: trayItemArea anchors.fill: parent @@ -88,6 +80,16 @@ Item { menuAnchor.open() } } + + IconImage { + anchors.centerIn: parent + width: parent.width + height: parent.width + source: trayItemWrapper.iconSource + asynchronous: true + smooth: true + mipmap: true + } } PopupWindow { -- cgit v1.2.3