changed window struct to include optionals where necessary
This commit is contained in:
@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user