diff options
author | 2022-06-09 18:27:24 -0500 | |
---|---|---|
committer | 2022-09-19 07:26:45 -0400 | |
commit | c015db4a9f115bfa10bd0b4c3fa05aca51b04c9b (patch) | |
tree | 0581ccd8c3639a20df1397b8c7e2dab6881a3289 /include/sway/tree/root.h | |
parent | Fix crash in xdg_activation_v1.c (diff) | |
download | sway-c015db4a9f115bfa10bd0b4c3fa05aca51b04c9b.tar.gz sway-c015db4a9f115bfa10bd0b4c3fa05aca51b04c9b.tar.zst sway-c015db4a9f115bfa10bd0b4c3fa05aca51b04c9b.zip |
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 'include/sway/tree/root.h')
-rw-r--r-- | include/sway/tree/root.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/include/sway/tree/root.h b/include/sway/tree/root.h index 5d4a2f2d..af4124a1 100644 --- a/include/sway/tree/root.h +++ b/include/sway/tree/root.h | |||
@@ -28,6 +28,7 @@ struct sway_root { | |||
28 | double width, height; | 28 | double width, height; |
29 | 29 | ||
30 | list_t *outputs; // struct sway_output | 30 | list_t *outputs; // struct sway_output |
31 | list_t *non_desktop_outputs; // struct sway_output_non_desktop | ||
31 | list_t *scratchpad; // struct sway_container | 32 | list_t *scratchpad; // struct sway_container |
32 | 33 | ||
33 | // For when there's no connected outputs | 34 | // For when there's no connected outputs |