2020-08-10 09:41:47 +00:00
|
|
|
/*
|
2021-03-01 20:03:25 +00:00
|
|
|
* SPDX-FileCopyrightText: 2020 Marco Martin <notmart@gmail.com>
|
2020-08-10 09:41:47 +00:00
|
|
|
*
|
2021-03-01 20:03:25 +00:00
|
|
|
* SPDX-License-Identifier: LGPL-2.0-or-later
|
2020-08-10 09:41:47 +00:00
|
|
|
*/
|
|
|
|
|
|
|
|
|
|
import QtQuick 2.0
|
|
|
|
|
import QtQuick.Layouts 1.1
|
|
|
|
|
import QtQuick.Window 2.2
|
2021-12-25 00:18:38 +00:00
|
|
|
|
2022-05-19 23:34:03 +00:00
|
|
|
import org.kde.pipewire 0.1 as PipeWire
|
2022-06-22 23:59:23 +00:00
|
|
|
import org.kde.taskmanager 0.1 as TaskManager
|
2020-08-10 09:41:47 +00:00
|
|
|
|
2022-05-19 23:34:03 +00:00
|
|
|
PipeWire.PipeWireSourceItem {
|
2022-05-11 21:29:37 +00:00
|
|
|
id: root
|
2022-05-11 23:51:31 +00:00
|
|
|
visible: nodeId > 0
|
|
|
|
|
nodeId: waylandItem.nodeId
|
2022-05-11 21:28:13 +00:00
|
|
|
|
2022-05-11 23:51:31 +00:00
|
|
|
readonly property alias uuid: waylandItem.uuid
|
2020-08-10 09:41:47 +00:00
|
|
|
|
2022-05-11 21:28:13 +00:00
|
|
|
function refresh() {
|
|
|
|
|
if (model.WinIdList) {
|
|
|
|
|
waylandItem.uuid = model.WinIdList[0];
|
2020-12-10 02:49:35 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2022-06-22 23:59:23 +00:00
|
|
|
TaskManager.ScreencastingRequest {
|
2020-08-10 09:41:47 +00:00
|
|
|
id: waylandItem
|
2022-05-11 21:28:13 +00:00
|
|
|
uuid: ""
|
2020-08-10 09:41:47 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|