aboutsummaryrefslogtreecommitdiffstats
path: root/include/sway/output.h
diff options
context:
space:
mode:
authorLibravatar Kirill Primak <vyivel@eclair.cafe>2022-11-11 18:29:04 +0300
committerLibravatar GitHub <noreply@github.com>2022-11-11 16:29:04 +0100
commit7862fa670e208b4871c868f9b0e2a19b46a30e63 (patch)
treeaf04922421932a75bbac9bab84330a2b91b788be /include/sway/output.h
parentUse wl_signal_emit_mutable() (diff)
downloadsway-7862fa670e208b4871c868f9b0e2a19b46a30e63.tar.gz
sway-7862fa670e208b4871c868f9b0e2a19b46a30e63.tar.zst
sway-7862fa670e208b4871c868f9b0e2a19b46a30e63.zip
Use wlr_damage_ring
wlr_output_damage is to be replaced with wlr_damage_ring, so use that.
Diffstat (limited to 'include/sway/output.h')
-rw-r--r--include/sway/output.h8
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 @@
3#include <time.h> 3#include <time.h>
4#include <unistd.h> 4#include <unistd.h>
5#include <wayland-server-core.h> 5#include <wayland-server-core.h>
6#include <wlr/types/wlr_damage_ring.h>
6#include <wlr/types/wlr_output.h> 7#include <wlr/types/wlr_output.h>
7#include "config.h" 8#include "config.h"
8#include "sway/tree/node.h" 9#include "sway/tree/node.h"
@@ -26,7 +27,7 @@ struct sway_output {
26 struct wlr_box usable_area; 27 struct wlr_box usable_area;
27 28
28 struct timespec last_frame; 29 struct timespec last_frame;
29 struct wlr_output_damage *damage; 30 struct wlr_damage_ring damage_ring;
30 31
31 int lx, ly; // layout coords 32 int lx, ly; // layout coords
32 int width, height; // transformed buffer size 33 int width, height; // transformed buffer size
@@ -44,8 +45,9 @@ struct sway_output {
44 struct wl_listener commit; 45 struct wl_listener commit;
45 struct wl_listener mode; 46 struct wl_listener mode;
46 struct wl_listener present; 47 struct wl_listener present;
47 struct wl_listener damage_destroy; 48 struct wl_listener damage;
48 struct wl_listener damage_frame; 49 struct wl_listener frame;
50 struct wl_listener needs_frame;
49 51
50 struct { 52 struct {
51 struct wl_signal disable; 53 struct wl_signal disable;