Commit ed8b88d0 authored by Marco Martin's avatar Marco Martin

make click on thumbnails work on wayland

winid on wayland is not an int, allow for that in
ToolTipwindowMouseArea
Never show the fallback icon on wayland
parent 8f34e4b9
......@@ -181,6 +181,7 @@ ColumnLayout {
}
Loader {
id: pipeWireLoader
anchors.fill: hoverHandler
anchors.margins: 1
......@@ -221,12 +222,12 @@ ColumnLayout {
visible: available
}
// when minimized, we don't have a preview, so show the icon
// when minimized, we don't have a preview on X11, so show the icon
PlasmaCore.IconItem {
width: parent.width
height: thumbnailSourceItem.height
anchors.horizontalCenter: parent.horizontalCenter
source: thumbnailSourceItem.isMinimized && !albumArtImage.visible ? icon : ""
source: thumbnailSourceItem.isMinimized && !albumArtImage.visible && Number.isInteger(thumbnailSourceItem.winId) ? icon : ""
animated: false
usesPlasmaTheme: false
visible: valid
......
......@@ -25,12 +25,13 @@ import org.kde.plasma.components 2.0 as PlasmaComponents
MouseArea {
property var modelIndex
property int winId // FIXME Legacy
// winId won't be an in in wayland
property var winId // FIXME Legacy
property Item rootTask
acceptedButtons: Qt.LeftButton | Qt.MiddleButton | Qt.RightButton
hoverEnabled: true
enabled: winId != 0
enabled: winId !== 0
onClicked: {
if (mouse.button == Qt.LeftButton) {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment