thumbnail: only keep the stream active if the window is shown

It does not make much sense to render the thumbnail when hidden,
especially on lower end devices like the pine.
This commit is contained in:
Aleix Pol 2020-12-10 03:37:29 +01:00
parent 972046f062
commit b7c508beb7

View file

@ -23,8 +23,7 @@ import QtQuick.Window 2.2
import org.kde.taskmanager 0.1 as TaskManager
TaskManager.PipeWireSourceItem {
//visible: waylandItem.nodeId > 0
visible: true
visible: Window.visibility !== Window.Hidden
nodeId: waylandItem.nodeId
TaskManager.ScreencastingRequest {