diff options
author | Ilia Mirkin <imirkin@alum.mit.edu> | 2021-01-21 06:24:52 -0500 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2021-01-21 15:14:54 +0100 |
commit | 7bc8dbb991ecebd7c5117776a043f886593cbd97 (patch) | |
tree | ad8981cf7527949080575656bb3c411a67c8c455 /include/backend | |
parent | 922b7f415d97ece56b8de38655642620e5f79c7b (diff) |
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
Diffstat (limited to 'include/backend')
-rw-r--r-- | include/backend/x11.h | 3 |
1 files changed, 3 insertions, 0 deletions
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 <xcb/xcb_errors.h> #endif +#include <pixman.h> #include <wlr/backend/x11.h> #include <wlr/interfaces/wlr_input_device.h> #include <wlr/interfaces/wlr_keyboard.h> @@ -47,6 +48,8 @@ struct wlr_x11_output { struct wl_list buffers; // wlr_x11_buffer::link + pixman_region32_t exposed; + uint64_t last_msc; }; |