1
0
mirror of https://github.com/joshuarubin/go-sway synced 2024-11-26 08:43:49 +01:00

Adds Focus property to the Workspace type

This commit is contained in:
Jason Kingsbury 2023-12-22 21:55:39 +00:00 committed by Joshua Rubin
parent 4188ad5732
commit d704f11d33

@ -310,6 +310,9 @@ type Workspace struct {
// Whether the workspace is currently focused by the default seat (seat0) // Whether the workspace is currently focused by the default seat (seat0)
Focused bool `json:"focused,omitempty"` Focused bool `json:"focused,omitempty"`
// Array of child node IDs in the current focus order
Focus []int64 `json:"focus,omitempty"`
// Whether a view on the workspace has the urgent flag set // Whether a view on the workspace has the urgent flag set
Urgent bool `json:"urgent,omitempty"` Urgent bool `json:"urgent,omitempty"`