aboutsummaryrefslogtreecommitdiff
path: root/sway/tree/root.c
diff options
context:
space:
mode:
authorAlex Maese <memaese@hotmail.com>2022-06-09 18:27:24 -0500
committerSimon Zeni <simon@bl4ckb0ne.ca>2022-09-19 07:26:45 -0400
commitc015db4a9f115bfa10bd0b4c3fa05aca51b04c9b (patch)
tree0581ccd8c3639a20df1397b8c7e2dab6881a3289 /sway/tree/root.c
parent1c368fbb5fcd8fb67040bcc12bd71c7fbf119e97 (diff)
sway: Add non-desktop-output type
Currently, when encountering a non-desktop display, sway offers the output for leasing and returns without storing it in a sway specific output type like `struct sway_output`. Additionally, running `swaymsg -t get_outputs` doesn't show non-desktop outputs. This commit stores the non-desktop outputs into a struct called `sway_output_non_desktop`, and adds them to a list on `sway_root`
Diffstat (limited to 'sway/tree/root.c')
-rw-r--r--sway/tree/root.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sway/tree/root.c b/sway/tree/root.c
index 8508e9eb..7df0b237 100644
--- a/sway/tree/root.c
+++ b/sway/tree/root.c
@@ -38,6 +38,7 @@ struct sway_root *root_create(void) {
wl_list_init(&root->drag_icons);
wl_signal_init(&root->events.new_node);
root->outputs = create_list();
+ root->non_desktop_outputs = create_list();
root->scratchpad = create_list();
root->output_layout_change.notify = output_layout_handle_change;