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
|
|
|
|
2020-08-10 09:41:47 +00:00
|
|
|
import org.kde.taskmanager 0.1 as TaskManager
|
|
|
|
|
|
|
|
|
|
TaskManager.PipeWireSourceItem {
|
2020-12-10 02:37:29 +00:00
|
|
|
visible: Window.visibility !== Window.Hidden
|
2020-08-10 09:41:47 +00:00
|
|
|
nodeId: waylandItem.nodeId
|
|
|
|
|
|
2020-12-10 02:49:35 +00:00
|
|
|
onVisibleChanged: {
|
2022-04-13 13:04:55 +00:00
|
|
|
if (visible) {
|
2021-12-25 03:31:33 +00:00
|
|
|
if (model.WinIdList) {
|
|
|
|
|
waylandItem.uuid = model.WinIdList[0];
|
|
|
|
|
}
|
2020-12-10 02:49:35 +00:00
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2020-10-26 13:35:37 +00:00
|
|
|
TaskManager.ScreencastingRequest {
|
2020-08-10 09:41:47 +00:00
|
|
|
id: waylandItem
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|