winfo: fix freeze when no active client

This commit is contained in:
2 * r + 2 * t 2025-07-01 16:19:53 +10:00
parent 61bc2b0fb8
commit 05ced6e4be

View file

@ -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
}
}