1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-04-03 20:32:07 -04:00

popout: fix focusing of password prompts when popout is open

undesired effect of closing the popout but its probably the best
solution
This commit is contained in:
bbedward
2026-03-16 11:30:31 -04:00
parent cc6766135d
commit 9578d6daf9
2 changed files with 12 additions and 2 deletions

View File

@@ -70,6 +70,16 @@ DankPopout {
backgroundInteractive: !anyModalOpen
onCredentialsPromptOpenChanged: {
if (credentialsPromptOpen && shouldBeVisible)
close();
}
onPolkitModalOpenChanged: {
if (polkitModalOpen && shouldBeVisible)
close();
}
customKeyboardFocus: {
if (!shouldBeVisible)
return WlrKeyboardFocus.None;

View File

@@ -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 {