Add outputs to the tree

This commit is contained in:
Drew DeVault 2017-11-19 17:04:28 -05:00
parent 733993a651
commit db4fb1c85c
8 changed files with 229 additions and 4 deletions

View file

@ -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) {