From 05ced6e4be6b40386c9e09061d5ee241dbbc413a Mon Sep 17 00:00:00 2001 From: 2 * r + 2 * t <61896496+soramanew@users.noreply.github.com> Date: Tue, 1 Jul 2025 16:19:53 +1000 Subject: winfo: fix freeze when no active client --- modules/windowinfo/Preview.qml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'modules') diff --git a/modules/windowinfo/Preview.qml b/modules/windowinfo/Preview.qml index 094a999..6cbb5bc 100644 --- a/modules/windowinfo/Preview.qml +++ b/modules/windowinfo/Preview.qml @@ -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 } } -- cgit v1.2.3-freya