diff options
Diffstat (limited to 'services')
| -rw-r--r-- | services/Hyprland.qml | 10 |
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 |