From ca644a32c0017f0d90b5d9ece0c50a2e9ed71fb9 Mon Sep 17 00:00:00 2001 From: Tordarus Date: Tue, 7 Oct 2025 16:40:11 +0200 Subject: [PATCH] changed window struct to include optionals where necessary --- model_window.go | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/model_window.go b/model_window.go index bf537af..a268976 100644 --- a/model_window.go +++ b/model_window.go @@ -5,15 +5,15 @@ import "encoding/json" type WindowID int type Window struct { - ID WindowID `json:"id"` - Title string `json:"title"` - AppID string `json:"app_id"` - PID int `json:"pid"` - WorkspaceID WorkspaceID `json:"workspace_id"` - Urgent bool `json:"is_urgent"` - Floating bool `json:"is_floating"` - Focused bool `json:"is_focused"` - Layout WindowLayout `json:"layout"` + ID WindowID `json:"id"` + Title Option[string] `json:"title"` + AppID Option[string] `json:"app_id"` + PID Option[int] `json:"pid"` + WorkspaceID Option[WorkspaceID] `json:"workspace_id"` + Urgent bool `json:"is_urgent"` + Floating bool `json:"is_floating"` + Focused bool `json:"is_focused"` + Layout WindowLayout `json:"layout"` } func (m Window) String() string {