mirror of
https://github.com/swaywm/sway.git
synced 2025-11-01 22:58:41 -04:00
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:
parent
5a0c4234b8
commit
dc1eac0cf1
3 changed files with 39 additions and 31 deletions
|
|
@ -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]);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue