From 9578d6daf995661b1790dc2e3419710379bc4a75 Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 16 Mar 2026 11:30:31 -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 3bd301f0..dce68c18 100644 --- a/quickshell/Widgets/DankPopout.qml +++ b/quickshell/Widgets/DankPopout.qml @@ -453,8 +453,8 @@ Item { visible: false x: contentContainer.x y: contentContainer.y - width: root.alignedWidth - height: root.alignedHeight + width: shouldBeVisible ? root.alignedWidth : 0 + height: shouldBeVisible ? root.alignedHeight : 0 } MouseArea {