mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-27 06:33:08 +00:00
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.
30 lines
634 B
QML
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
|
|
}
|
|
}
|
|
|
|
|