overview: indicate xwayland with italics and tooltip instead of icon

This commit is contained in:
end-4
2025-05-29 23:51:38 +02:00
parent 363e3327ba
commit 3cf64401ef
2 changed files with 11 additions and 13 deletions
@@ -176,8 +176,8 @@ Item {
id: dragArea
anchors.fill: parent
hoverEnabled: true
onEntered: hovered = true
onExited: hovered = false
onEntered: hovered = true // For hover color change
onExited: hovered = false // For hover color change
acceptedButtons: Qt.LeftButton | Qt.MiddleButton
drag.target: parent
onPressed: {
@@ -212,6 +212,12 @@ Item {
event.accepted = true
}
}
StyledToolTip {
extraVisibleCondition: false
alternativeVisibleCondition: dragArea.containsMouse && !window.Drag.active
content: `${windowData.title}\n[${windowData.class}] ${windowData.xwayland ? "[XWayland] " : ""}\n`
}
}
}
}