diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-11-11 18:29:04 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-11 16:29:04 +0100 |
commit | 7862fa670e208b4871c868f9b0e2a19b46a30e63 (patch) | |
tree | af04922421932a75bbac9bab84330a2b91b788be /include | |
parent | dcd2076f3854f4bb0018b6a47781dc48a55393b0 (diff) | |
download | sway-7862fa670e208b4871c868f9b0e2a19b46a30e63.tar.xz |
Use wlr_damage_ring
wlr_output_damage is to be replaced with wlr_damage_ring, so use that.
Diffstat (limited to 'include')
-rw-r--r-- | include/sway/output.h | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/include/sway/output.h b/include/sway/output.h index d72bf1b2..7ccaa09c 100644 --- a/include/sway/output.h +++ b/include/sway/output.h @@ -3,6 +3,7 @@ #include <time.h> #include <unistd.h> #include <wayland-server-core.h> +#include <wlr/types/wlr_damage_ring.h> #include <wlr/types/wlr_output.h> #include "config.h" #include "sway/tree/node.h" @@ -26,7 +27,7 @@ struct sway_output { struct wlr_box usable_area; struct timespec last_frame; - struct wlr_output_damage *damage; + struct wlr_damage_ring damage_ring; int lx, ly; // layout coords int width, height; // transformed buffer size @@ -44,8 +45,9 @@ struct sway_output { struct wl_listener commit; struct wl_listener mode; struct wl_listener present; - struct wl_listener damage_destroy; - struct wl_listener damage_frame; + struct wl_listener damage; + struct wl_listener frame; + struct wl_listener needs_frame; struct { struct wl_signal disable; |