diff options
author | Drew DeVault <sir@cmpwn.com> | 2017-11-19 17:04:28 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2017-11-19 17:04:28 -0500 |
commit | db4fb1c85c132e001fb1ae18f03f7585def1ae19 (patch) | |
tree | 91da84c9476e6ec34c65f3f8923961fd893fa721 /sway/desktop | |
parent | 733993a651c71f7e2198d505960d6bbd31e0e107 (diff) | |
download | sway-db4fb1c85c132e001fb1ae18f03f7585def1ae19.tar.xz |
Add outputs to the tree
Diffstat (limited to 'sway/desktop')
-rw-r--r-- | sway/desktop/output.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c index 6ddcac3b..27579c1b 100644 --- a/sway/desktop/output.c +++ b/sway/desktop/output.c @@ -5,6 +5,7 @@ #include <wlr/types/wlr_output.h> #include <wlr/render.h> #include "log.h" +#include "sway/container.h" #include "sway/output.h" #include "sway/server.h" @@ -34,11 +35,10 @@ void output_add_notify(struct wl_listener *listener, void *data) { struct sway_output *output = calloc(1, sizeof(struct sway_output)); output->wlr_output = wlr_output; output->server = server; + output->swayc = new_output(output); output->frame.notify = output_frame_notify; wl_signal_add(&wlr_output->events.frame, &output->frame); - - // TODO: Add to tree } void output_remove_notify(struct wl_listener *listener, void *data) { |