output: remove output_add_listeners

Simplify the code by registering signals when outputs are created and removing
signals when they are destroyed.
This commit is contained in:
emersion 2019-01-17 21:49:06 +01:00
parent 5a0c4234b8
commit dc1eac0cf1
3 changed files with 39 additions and 31 deletions

View file

@ -144,8 +144,6 @@ void output_get_box(struct sway_output *output, struct wlr_box *box);
enum sway_container_layout output_get_default_layout(
struct sway_output *output);
void output_add_listeners(struct sway_output *output);
void render_rect(struct wlr_output *wlr_output,
pixman_region32_t *output_damage, const struct wlr_box *_box,
float color[static 4]);