From 7bc8dbb991ecebd7c5117776a043f886593cbd97 Mon Sep 17 00:00:00 2001 From: Ilia Mirkin Date: Thu, 21 Jan 2021 06:24:52 -0500 Subject: backend/x11: keep track of exposed rects, add them to damage regions When we receive an Expose event, that means that we must redraw that region of the X11 window. Keep track of these regions with pixman regions, and merge them with the additional output damaged regions. Fixes #2670 --- include/backend/x11.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'include/backend') diff --git a/include/backend/x11.h b/include/backend/x11.h index 79c61b88..1b440d2a 100644 --- a/include/backend/x11.h +++ b/include/backend/x11.h @@ -14,6 +14,7 @@ #include #endif +#include #include #include #include @@ -47,6 +48,8 @@ struct wlr_x11_output { struct wl_list buffers; // wlr_x11_buffer::link + pixman_region32_t exposed; + uint64_t last_msc; }; -- cgit v1.2.3