mirror of
https://github.com/swaywm/sway.git
synced 2025-11-17 06:59:48 -05:00
Add outputs to the tree
This commit is contained in:
parent
733993a651
commit
db4fb1c85c
8 changed files with 229 additions and 4 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue