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 {