mirror of
https://invent.kde.org/marcoa/shift-shell.git
synced 2026-04-29 15:03:09 +00:00
thumbnail: don't request the window stream until we first need it
This way we don't add more pressure upon application startup time. It doesn't seem noticeable when showing the windows overview.
This commit is contained in:
parent
b7c508beb7
commit
3ca6a2d395
1 changed files with 6 additions and 1 deletions
|
|
@ -26,9 +26,14 @@ TaskManager.PipeWireSourceItem {
|
|||
visible: Window.visibility !== Window.Hidden
|
||||
nodeId: waylandItem.nodeId
|
||||
|
||||
onVisibleChanged: {
|
||||
if (visible && waylandItem.uuid.length === 0) {
|
||||
waylandItem.uuid = model.WinIdList[0]
|
||||
}
|
||||
}
|
||||
|
||||
TaskManager.ScreencastingRequest {
|
||||
id: waylandItem
|
||||
uuid: model.WinIdList[0]
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue