diff options
Diffstat (limited to 'include/sway/output.h')
-rw-r--r-- | include/sway/output.h | 14 |
1 files changed, 12 insertions, 2 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index 6fb79987..b4980cd8 100644 --- a/include/sway/output.h +++ b/include/sway/output.h | |||
@@ -5,6 +5,7 @@ | |||
5 | #include <wayland-server.h> | 5 | #include <wayland-server.h> |
6 | #include <wlr/types/wlr_box.h> | 6 | #include <wlr/types/wlr_box.h> |
7 | #include <wlr/types/wlr_output.h> | 7 | #include <wlr/types/wlr_output.h> |
8 | #include "sway/tree/view.h" | ||
8 | 9 | ||
9 | struct sway_server; | 10 | struct sway_server; |
10 | struct sway_container; | 11 | struct sway_container; |
@@ -13,17 +14,26 @@ struct sway_output { | |||
13 | struct wlr_output *wlr_output; | 14 | struct wlr_output *wlr_output; |
14 | struct sway_container *swayc; | 15 | struct sway_container *swayc; |
15 | struct sway_server *server; | 16 | struct sway_server *server; |
16 | struct timespec last_frame; | ||
17 | 17 | ||
18 | struct wl_list layers[4]; // sway_layer_surface::link | 18 | struct wl_list layers[4]; // sway_layer_surface::link |
19 | struct wlr_box usable_area; | 19 | struct wlr_box usable_area; |
20 | 20 | ||
21 | struct wl_listener frame; | 21 | struct timespec last_frame; |
22 | struct wlr_output_damage *damage; | ||
23 | |||
22 | struct wl_listener destroy; | 24 | struct wl_listener destroy; |
23 | struct wl_listener mode; | 25 | struct wl_listener mode; |
24 | struct wl_listener transform; | 26 | struct wl_listener transform; |
25 | 27 | ||
28 | struct wl_listener damage_destroy; | ||
29 | struct wl_listener damage_frame; | ||
30 | |||
26 | pid_t bg_pid; | 31 | pid_t bg_pid; |
27 | }; | 32 | }; |
28 | 33 | ||
34 | void output_damage_whole(struct sway_output *output); | ||
35 | |||
36 | void output_damage_whole_view(struct sway_output *output, | ||
37 | struct sway_view *view); | ||
38 | |||
29 | #endif | 39 | #endif |