From fa629fbf996b161a10412a66c627de4763003492 Mon Sep 17 00:00:00 2001 From: bbedward Date: Fri, 24 Jul 2026 15:45:46 -0400 Subject: [PATCH] dock: use required properties in dock item delegate, fixes context injection on Qt 6.8 (#2926) --- quickshell/Modules/Dock/DockApps.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/quickshell/Modules/Dock/DockApps.qml b/quickshell/Modules/Dock/DockApps.qml index d894fc9ff..63e7c8526 100644 --- a/quickshell/Modules/Dock/DockApps.qml +++ b/quickshell/Modules/Dock/DockApps.qml @@ -479,6 +479,8 @@ Item { delegate: Item { id: delegateItem + required property var modelData + required property int index property var dockButton: { switch (itemData.type) { @@ -599,7 +601,7 @@ Item { height: delegateItem.height actualIconSize: root.iconSize dockApps: root - index: model.index + index: delegateItem.index } DockTrashButton { @@ -624,7 +626,7 @@ Item { appData: itemData contextMenu: root.contextMenu dockApps: root - index: model.index + index: delegateItem.index parentDockScreen: root.dockScreen showWindowTitle: itemData?.type === "window" || itemData?.type === "grouped" windowTitle: {