shift-shell/components/mobileshell/qml/taskswitcher/Thumbnail.qml
Devin Lin 210042a6bf libmobileshell: Move back to QML plugin
Move from a C++ library + QML plugin to a QML plugin only for simplicity, since the homescreen switching architecture will be done from Plasma, and so use of the shell library only needs to be from QML.
2022-03-21 10:00:09 -04:00

30 lines
634 B
QML

/*
* SPDX-FileCopyrightText: 2020 Marco Martin <notmart@gmail.com>
*
* SPDX-License-Identifier: LGPL-2.0-or-later
*/
import QtQuick 2.0
import QtQuick.Layouts 1.1
import QtQuick.Window 2.2
import org.kde.taskmanager 0.1 as TaskManager
TaskManager.PipeWireSourceItem {
visible: Window.visibility !== Window.Hidden
nodeId: waylandItem.nodeId
onVisibleChanged: {
if (visible && waylandItem.uuid.length === 0) {
if (model.WinIdList) {
waylandItem.uuid = model.WinIdList[0];
}
}
}
TaskManager.ScreencastingRequest {
id: waylandItem
}
}