summaryrefslogtreecommitdiff
path: root/services
diff options
context:
space:
mode:
author2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 22:29:31 +1000
committer2 * r + 2 * t <61896496+soramanew@users.noreply.github.com>2025-04-29 22:29:31 +1000
commit7712665c38cc9caaae750d714e9cb89c6d74f656 (patch)
tree6365cc6abe38c3c22130282aaffec3f11192b334 /services
parentbar: minor code changes (diff)
downloadcaelestia-shell-7712665c38cc9caaae750d714e9cb89c6d74f656.tar.gz
caelestia-shell-7712665c38cc9caaae750d714e9cb89c6d74f656.tar.bz2
caelestia-shell-7712665c38cc9caaae750d714e9cb89c6d74f656.zip
hyprland: fix undefined errors
Diffstat (limited to 'services')
-rw-r--r--services/Hyprland.qml10
1 files changed, 5 insertions, 5 deletions
diff --git a/services/Hyprland.qml b/services/Hyprland.qml
index a8a6c44..92f1de5 100644
--- a/services/Hyprland.qml
+++ b/services/Hyprland.qml
@@ -65,11 +65,11 @@ Singleton {
property string title: lastIpcObject?.title ?? ""
property string initialClass: lastIpcObject?.initialClass ?? ""
property string initialTitle: lastIpcObject?.initialTitle ?? ""
- property int x: lastIpcObject?.at[0] ?? 0
- property int y: lastIpcObject?.at[1] ?? 0
- property int width: lastIpcObject?.size[0] ?? 0
- property int height: lastIpcObject?.size[1] ?? 0
- property HyprlandWorkspace workspace: Hyprland.workspaces.values.find(w => w.id === lastIpcObject?.workspace.id) ?? null
+ property int x: (lastIpcObject?.at ?? [])[0] ?? 0
+ property int y: (lastIpcObject?.at ?? [])[1] ?? 0
+ property int width: (lastIpcObject?.size ?? [])[0] ?? 0
+ property int height: (lastIpcObject?.size ?? [])[1] ?? 0
+ property HyprlandWorkspace workspace: Hyprland.workspaces.values.find(w => w.id === lastIpcObject?.workspace?.id) ?? null
property bool floating: lastIpcObject?.floating ?? false
property bool fullscreen: lastIpcObject?.fullscreen ?? false
property int pid: lastIpcObject?.pid ?? 0