From 6367e0bc93f33868371fc443808a1753625faea6 Mon Sep 17 00:00:00 2001 From: Las Date: Fri, 10 Aug 2018 18:13:41 +0200 Subject: Add wlr_surface::input_region member This is analogous to the opaque_region member. In addition the code for setting the opaque region is cleaned up. --- include/wlr/types/wlr_surface.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'include/wlr') diff --git a/include/wlr/types/wlr_surface.h b/include/wlr/types/wlr_surface.h index 063f9e26..bfbfbcc8 100644 --- a/include/wlr/types/wlr_surface.h +++ b/include/wlr/types/wlr_surface.h @@ -81,6 +81,11 @@ struct wlr_surface { * format, this is set to the whole surface. */ pixman_region32_t opaque_region; + /** + * The current input region, in surface-local coordinates. It is clipped to + * the surface bounds. + */ + pixman_region32_t input_region; /** * `current` contains the current, committed surface state. `pending` * accumulates state changes from the client between commits and shouldn't -- cgit v1.2.3