From 59451890f15b514ec7c4d3370d53eaaa05e74ed1 Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 16 Mar 2026 11:37:21 -0400 Subject: [PATCH] popout: fix focusing of password prompts when popout is open undesired effect of closing the popout but its probably the best solution --- .../Modules/ControlCenter/ControlCenterPopout.qml | 10 ++++++++++ quickshell/Widgets/DankPopout.qml | 4 ++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/quickshell/Modules/ControlCenter/ControlCenterPopout.qml b/quickshell/Modules/ControlCenter/ControlCenterPopout.qml index 065d09c1..d8839aaf 100644 --- a/quickshell/Modules/ControlCenter/ControlCenterPopout.qml +++ b/quickshell/Modules/ControlCenter/ControlCenterPopout.qml @@ -70,6 +70,16 @@ DankPopout { backgroundInteractive: !anyModalOpen + onCredentialsPromptOpenChanged: { + if (credentialsPromptOpen && shouldBeVisible) + close(); + } + + onPolkitModalOpenChanged: { + if (polkitModalOpen && shouldBeVisible) + close(); + } + customKeyboardFocus: { if (!shouldBeVisible) return WlrKeyboardFocus.None; diff --git a/quickshell/Widgets/DankPopout.qml b/quickshell/Widgets/DankPopout.qml index 1c9207b6..2afb1bcd 100644 --- a/quickshell/Widgets/DankPopout.qml +++ b/quickshell/Widgets/DankPopout.qml @@ -407,8 +407,8 @@ Item { visible: false x: contentContainer.x - root.shadowBuffer y: contentContainer.y - root.shadowBuffer - width: root.alignedWidth + root.shadowBuffer * 2 - height: root.alignedHeight + root.shadowBuffer * 2 + width: shouldBeVisible ? root.alignedWidth + root.shadowBuffer * 2 : 0 + height: shouldBeVisible ? root.alignedHeight + root.shadowBuffer * 2 : 0 } MouseArea {