From 303dc70c286f9a47a8ada346bf30d5cff86e8ff0 Mon Sep 17 00:00:00 2001 From: bbedward Date: Mon, 21 Jul 2025 21:37:19 -0400 Subject: [PATCH] clipboard: fix focus warning on exit --- Modules/ClipboardHistory.qml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Modules/ClipboardHistory.qml b/Modules/ClipboardHistory.qml index 2eae1f69..a41e3bc0 100644 --- a/Modules/ClipboardHistory.qml +++ b/Modules/ClipboardHistory.qml @@ -131,7 +131,7 @@ PanelWindow { visible: isVisible WlrLayershell.layer: WlrLayershell.Overlay WlrLayershell.exclusiveZone: -1 - WlrLayershell.keyboardFocus: isVisible ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None + WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand anchors { top: true @@ -274,6 +274,7 @@ PanelWindow { color: activeTheme.surfaceText verticalAlignment: TextInput.AlignVCenter selectByMouse: true + enabled: clipboardHistory.isVisible onTextChanged: updateFilteredModel() Keys.onPressed: (event) => { if (event.key === Qt.Key_Escape) @@ -347,6 +348,8 @@ PanelWindow { MouseArea { anchors.fill: parent acceptedButtons: Qt.NoButton + propagateComposedEvents: true + z: -1 onWheel: (wheel) => { var delta = wheel.angleDelta.y; var steps = delta / 120; // Standard wheel step