aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
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/desktop
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/desktop')
-rw-r--r--sway/desktop/output.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 7bb9dab2..3f3f9494 100644
--- a/sway/desktop/output.c
+++ b/sway/desktop/output.c
@@ -883,10 +883,12 @@ void handle_new_output(struct wl_listener *listener, void *data) {
if (wlr_output->non_desktop) {
sway_log(SWAY_DEBUG, "Not configuring non-desktop output");
+ struct sway_output_non_desktop *non_desktop = output_non_desktop_create(wlr_output);
if (server->drm_lease_manager) {
wlr_drm_lease_v1_manager_offer_output(server->drm_lease_manager,
wlr_output);
}
+ list_add(root->non_desktop_outputs, non_desktop);
return;
}