2024-02-14 16:36:12 +01:00
|
|
|
package sway
|
|
|
|
|
2024-02-14 17:21:50 +01:00
|
|
|
// 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
|
2024-02-14 16:48:50 +01:00
|
|
|
func (c *Client) GetTree() (*Node, error) {
|
2024-02-14 16:36:12 +01:00
|
|
|
return sendMessage[*Node](c, 4, "")
|
|
|
|
}
|