1
0
mirror of https://github.com/AvengeMedia/DankMaterialShell.git synced 2026-01-28 23:42:51 -05:00

clipboard: fix focus warning on exit

This commit is contained in:
bbedward
2025-07-21 21:37:19 -04:00
parent de8235d94f
commit 303dc70c28

View File

@@ -131,7 +131,7 @@ PanelWindow {
visible: isVisible visible: isVisible
WlrLayershell.layer: WlrLayershell.Overlay WlrLayershell.layer: WlrLayershell.Overlay
WlrLayershell.exclusiveZone: -1 WlrLayershell.exclusiveZone: -1
WlrLayershell.keyboardFocus: isVisible ? WlrKeyboardFocus.Exclusive : WlrKeyboardFocus.None WlrLayershell.keyboardFocus: WlrKeyboardFocus.OnDemand
anchors { anchors {
top: true top: true
@@ -274,6 +274,7 @@ PanelWindow {
color: activeTheme.surfaceText color: activeTheme.surfaceText
verticalAlignment: TextInput.AlignVCenter verticalAlignment: TextInput.AlignVCenter
selectByMouse: true selectByMouse: true
enabled: clipboardHistory.isVisible
onTextChanged: updateFilteredModel() onTextChanged: updateFilteredModel()
Keys.onPressed: (event) => { Keys.onPressed: (event) => {
if (event.key === Qt.Key_Escape) if (event.key === Qt.Key_Escape)
@@ -347,6 +348,8 @@ PanelWindow {
MouseArea { MouseArea {
anchors.fill: parent anchors.fill: parent
acceptedButtons: Qt.NoButton acceptedButtons: Qt.NoButton
propagateComposedEvents: true
z: -1
onWheel: (wheel) => { onWheel: (wheel) => {
var delta = wheel.angleDelta.y; var delta = wheel.angleDelta.y;
var steps = delta / 120; // Standard wheel step var steps = delta / 120; // Standard wheel step