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.
This commit is contained in:
Las 2018-08-10 18:13:41 +02:00
parent 57690594f4
commit 6367e0bc93
2 changed files with 17 additions and 6 deletions

View file

@ -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