From b84fa410ce4ea8ca970142f925d33d021c9a3d59 Mon Sep 17 00:00:00 2001 From: purian23 Date: Sun, 20 Sep 2026 02:30:34 -0400 Subject: [PATCH] fix(modals): adjust focus handling in ClipboardHistoryModal & DankModalHost --- quickshell/Modals/Clipboard/ClipboardHistoryModal.qml | 1 - quickshell/Modals/Common/DankModalHost.qml | 3 +-- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/quickshell/Modals/Clipboard/ClipboardHistoryModal.qml b/quickshell/Modals/Clipboard/ClipboardHistoryModal.qml index 275310e98..da81bd5ba 100644 --- a/quickshell/Modals/Clipboard/ClipboardHistoryModal.qml +++ b/quickshell/Modals/Clipboard/ClipboardHistoryModal.qml @@ -21,7 +21,6 @@ DankModal { function show() { open(); - shouldHaveFocus = true; Qt.callLater(function () { if (contentLoader.item) { diff --git a/quickshell/Modals/Common/DankModalHost.qml b/quickshell/Modals/Common/DankModalHost.qml index 46b658f93..54dbacc14 100644 --- a/quickshell/Modals/Common/DankModalHost.qml +++ b/quickshell/Modals/Common/DankModalHost.qml @@ -323,8 +323,7 @@ Item { clickCatcher.item.present(); contentWindow.visible = true; opened(); - shouldHaveFocus = false; - Qt.callLater(() => shouldHaveFocus = Qt.binding(() => shouldBeVisible)); + shouldHaveFocus = Qt.binding(() => shouldBeVisible); } on_SurfaceFrameReadyChanged: {