hyprland: fix undefined errors
This commit is contained in:
parent
7d07f8175d
commit
7712665c38
1 changed files with 5 additions and 5 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue