9 lines
278 B
Go
9 lines
278 B
Go
package sway
|
|
|
|
// GetTree returns a Node object containing all
|
|
// outputs, workspaces, containers and windows in a recursive tree.
|
|
// Use Node.Find and Node.FindAll to search the tree recursively
|
|
func (c *Client) GetTree() (*Node, error) {
|
|
return sendMessage[*Node](c, 4, "")
|
|
}
|