winfo: fix freeze when no active client
This commit is contained in:
parent
61bc2b0fb8
commit
05ced6e4be
1 changed files with 1 additions and 1 deletions
|
|
@ -72,7 +72,7 @@ Item {
|
|||
captureSource: root.client?.wayland ?? null
|
||||
live: true
|
||||
|
||||
constraintSize.width: parent.height * Math.min(root.screen.width / root.screen.height, root.client?.lastIpcObject.size[0] / root.client?.lastIpcObject.size[1])
|
||||
constraintSize.width: root.client ? parent.height * Math.min(root.screen.width / root.screen.height, root.client?.lastIpcObject.size[0] / root.client?.lastIpcObject.size[1]) : parent.height
|
||||
constraintSize.height: parent.height
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue