1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2025-12-06 05:25:41 -05:00

popout: keyboard focus fix

This commit is contained in:
bbedward
2025-11-04 10:29:16 -05:00
parent bbfd618626
commit 3e9b11c281

View File

@@ -53,7 +53,7 @@ PanelWindow {
Timer { Timer {
id: closeTimer id: closeTimer
interval: animationDuration + 120 interval: animationDuration
onTriggered: { onTriggered: {
if (!shouldBeVisible) { if (!shouldBeVisible) {
visible = false visible = false
@@ -103,7 +103,8 @@ PanelWindow {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
enabled: shouldBeVisible enabled: shouldBeVisible && contentLoader.opacity > 0.1
acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton
onClicked: mouse => { onClicked: mouse => {
if (mouse.x < alignedX || mouse.x > alignedX + alignedWidth || if (mouse.x < alignedX || mouse.x > alignedX + alignedWidth ||
mouse.y < alignedY || mouse.y > alignedY + alignedHeight) { mouse.y < alignedY || mouse.y > alignedY + alignedHeight) {
@@ -127,6 +128,7 @@ PanelWindow {
layer.textureSize: Qt.size(width * Math.max(2, root.screen?.devicePixelRatio || 1), height * Math.max(2, root.screen?.devicePixelRatio || 1)) layer.textureSize: Qt.size(width * Math.max(2, root.screen?.devicePixelRatio || 1), height * Math.max(2, root.screen?.devicePixelRatio || 1))
layer.samples: 4 layer.samples: 4
opacity: shouldBeVisible ? 1 : 0 opacity: shouldBeVisible ? 1 : 0
visible: opacity > 0
transform: [scaleTransform, motionTransform] transform: [scaleTransform, motionTransform]
Scale { Scale {