#ifndef _SWAY_OUTPUT_H #define _SWAY_OUTPUT_H #include #include #include #include #include #include "sway/tree/view.h" struct sway_server; struct sway_container; struct sway_output { struct wlr_output *wlr_output; struct sway_container *swayc; struct sway_server *server; struct wl_list layers[4]; // sway_layer_surface::link struct wlr_box usable_area; struct timespec last_frame; struct wlr_output_damage *damage; struct wl_listener destroy; struct wl_listener mode; struct wl_listener transform; struct wl_listener scale; struct wl_listener damage_destroy; struct wl_listener damage_frame; pid_t bg_pid; }; void output_damage_whole(struct sway_output *output); void output_damage_whole_view(struct sway_output *output, struct sway_view *view); void output_damage_whole_rect(struct sway_output *output, double ox, double oy, int width, int height); struct sway_container *output_by_name(const char *name); #endif