mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-26 14:23:09 +00:00
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.
21 lines
544 B
QML
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
|
|
}
|
|
}
|