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 {