mirror of
https://github.com/AvengeMedia/DankMaterialShell.git
synced 2026-04-13 17:22:08 -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:
@@ -70,6 +70,16 @@ DankPopout {
|
|||||||
|
|
||||||
backgroundInteractive: !anyModalOpen
|
backgroundInteractive: !anyModalOpen
|
||||||
|
|
||||||
|
onCredentialsPromptOpenChanged: {
|
||||||
|
if (credentialsPromptOpen && shouldBeVisible)
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
|
||||||
|
onPolkitModalOpenChanged: {
|
||||||
|
if (polkitModalOpen && shouldBeVisible)
|
||||||
|
close();
|
||||||
|
}
|
||||||
|
|
||||||
customKeyboardFocus: {
|
customKeyboardFocus: {
|
||||||
if (!shouldBeVisible)
|
if (!shouldBeVisible)
|
||||||
return WlrKeyboardFocus.None;
|
return WlrKeyboardFocus.None;
|
||||||
|
|||||||
@@ -407,8 +407,8 @@ Item {
|
|||||||
visible: false
|
visible: false
|
||||||
x: contentContainer.x - root.shadowBuffer
|
x: contentContainer.x - root.shadowBuffer
|
||||||
y: contentContainer.y - root.shadowBuffer
|
y: contentContainer.y - root.shadowBuffer
|
||||||
width: root.alignedWidth + root.shadowBuffer * 2
|
width: shouldBeVisible ? root.alignedWidth + root.shadowBuffer * 2 : 0
|
||||||
height: root.alignedHeight + root.shadowBuffer * 2
|
height: shouldBeVisible ? root.alignedHeight + root.shadowBuffer * 2 : 0
|
||||||
}
|
}
|
||||||
|
|
||||||
MouseArea {
|
MouseArea {
|
||||||
|
|||||||
Reference in New Issue
Block a user