shift-shell/containments/homescreens/folio/qml/PipeWireThumbnail.qml
Marco Allegretti 29ce5117ff Show window thumbnail on dock icon hover
Hovering a running-app icon in the dock shows a live PipeWire
thumbnail of the window via zkde_screencast. Falls back to the
app icon when the stream isn't available. Clicking the thumbnail
activates the window.

Uses a tooltip-type Window so the popup renders above app windows
instead of being clipped to the panel surface.
2026-04-10 10:23:36 +02:00

21 lines
544 B
QML

// SPDX-FileCopyrightText: 2020 Aleix Pol Gonzalez <aleixpol@kde.org>
// SPDX-License-Identifier: LGPL-2.0-or-later
import QtQuick
import org.kde.pipewire as PipeWire
import org.kde.taskmanager as TaskManager
PipeWire.PipeWireSourceItem {
id: pipeWireSourceItem
property string windowUuid: ""
readonly property alias hasThumbnail: pipeWireSourceItem.ready
anchors.fill: parent
nodeId: waylandItem.nodeId
TaskManager.ScreencastingRequest {
id: waylandItem
uuid: pipeWireSourceItem.windowUuid
}
}