From 0b87df2608cc282ea28bd40fec524cef55a6fb8e Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 1 Sep 2026 19:09:42 -0400 Subject: [PATCH] island: keep hover intent when a destination expands after its face loads --- quickshell/Modules/DankIsland/IslandController.qml | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/quickshell/Modules/DankIsland/IslandController.qml b/quickshell/Modules/DankIsland/IslandController.qml index 75320fcc4..f5ab96558 100644 --- a/quickshell/Modules/DankIsland/IslandController.qml +++ b/quickshell/Modules/DankIsland/IslandController.qml @@ -27,8 +27,6 @@ QtObject { } property string launcherPendingQuery: "" property string launcherPendingMode: "" - property bool _launcherPendingExpand: true - property bool _launcherPendingKeyboardFocus: true property string controlCenterPendingSection: "" property bool notificationExpandAllowed: false property bool keyboardYielded: false @@ -125,6 +123,7 @@ QtObject { "requested": false, "ready": false, "pending": false, + "pendingKeyboardFocus": false, "contentWidth": destinationDefaults[id].contentWidth, "contentHeight": destinationDefaults[id].contentHeight }; @@ -193,11 +192,7 @@ QtObject { destinationRevision++; if (!pending) return; - if (activityId === "launcher") { - requestActivity("launcher", _launcherPendingExpand, _launcherPendingKeyboardFocus); - return; - } - requestActivity(activityId, true, true); + requestActivity(activityId, true, entry.pendingKeyboardFocus); } function clearPendingRequests(exceptId) { @@ -529,12 +524,9 @@ QtObject { if (destination && shouldExpand === true && !visualsReady(activityId)) { const entry = destinationState[activityId]; entry.pending = true; + entry.pendingKeyboardFocus = requestKeyboardFocus === true; entry.requested = true; destinationRevision++; - if (activityId === "launcher") { - _launcherPendingExpand = true; - _launcherPendingKeyboardFocus = requestKeyboardFocus === true; - } return true; }