summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-01 16:19:53 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-07-01 16:19:53 +1000
commit05ced6e4be6b40386c9e09061d5ee241dbbc413a (patch)
tree21593772056bffd7ca5f5acd5d83f1c6e4d8d67f /modules
parentpicker: fix client rects (diff)
downloadcaelestia-shell-05ced6e4be6b40386c9e09061d5ee241dbbc413a.tar.gz
caelestia-shell-05ced6e4be6b40386c9e09061d5ee241dbbc413a.tar.bz2
caelestia-shell-05ced6e4be6b40386c9e09061d5ee241dbbc413a.zip
winfo: fix freeze when no active client
Diffstat (limited to 'modules')
-rw-r--r--modules/windowinfo/Preview.qml2
1 files changed, 1 insertions, 1 deletions
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
}
}