From 3e9b11c281ec33517596563e3c7173f4f5c44380 Mon Sep 17 00:00:00 2001 From: bbedward Date: Tue, 4 Nov 2025 10:29:16 -0500 Subject: [PATCH] popout: keyboard focus fix --- Widgets/DankPopout.qml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/Widgets/DankPopout.qml b/Widgets/DankPopout.qml index 87345b8b..23f45667 100644 --- a/Widgets/DankPopout.qml +++ b/Widgets/DankPopout.qml @@ -53,7 +53,7 @@ PanelWindow { Timer { id: closeTimer - interval: animationDuration + 120 + interval: animationDuration onTriggered: { if (!shouldBeVisible) { visible = false @@ -103,7 +103,8 @@ PanelWindow { MouseArea { anchors.fill: parent - enabled: shouldBeVisible + enabled: shouldBeVisible && contentLoader.opacity > 0.1 + acceptedButtons: Qt.LeftButton | Qt.RightButton | Qt.MiddleButton onClicked: mouse => { if (mouse.x < alignedX || mouse.x > alignedX + alignedWidth || 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.samples: 4 opacity: shouldBeVisible ? 1 : 0 + visible: opacity > 0 transform: [scaleTransform, motionTransform] Scale {