From 54da1a90abfc14cb87113650883d1e5f4ac22224 Mon Sep 17 00:00:00 2001 From: Ryan Hughes Date: Mon, 18 May 2026 01:47:29 -0400 Subject: [PATCH] Gallery: scroll initial cursor target into view on open --- .../omarchy-shell/plugins/dev-gallery/GalleryPanel.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/default/quickshell/omarchy-shell/plugins/dev-gallery/GalleryPanel.qml b/default/quickshell/omarchy-shell/plugins/dev-gallery/GalleryPanel.qml index 56bd0c34..28c4eb44 100644 --- a/default/quickshell/omarchy-shell/plugins/dev-gallery/GalleryPanel.qml +++ b/default/quickshell/omarchy-shell/plugins/dev-gallery/GalleryPanel.qml @@ -21,7 +21,10 @@ Item { function open(payloadJson) { closingFromHost = false window.visible = true - Qt.callLater(function() { if (keyCatcher) keyCatcher.forceActiveFocus() }) + Qt.callLater(function() { + if (keyCatcher) keyCatcher.forceActiveFocus() + ensureCursorVisible(currentTarget()) + }) } // Host-initiated close (`shell hide`). Visibility flips without