diff options
author | Las <las@protonmail.ch> | 2018-08-10 18:13:41 +0200 |
---|---|---|
committer | Las <las@protonmail.ch> | 2018-09-18 10:14:33 +0200 |
commit | 6367e0bc93f33868371fc443808a1753625faea6 (patch) | |
tree | a3238d37c2e2e094e6ab459cb8bb5fba294e0144 /include | |
parent | 57690594f497cbc9cc552eee75a94e76226e433e (diff) |
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.
Diffstat (limited to 'include')
-rw-r--r-- | include/wlr/types/wlr_surface.h | 5 |
1 files changed, 5 insertions, 0 deletions
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 @@ -82,6 +82,11 @@ struct wlr_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 * be accessed by the compositor directly. `previous` contains the state of |