diff options
author | emersion <contact@emersion.fr> | 2018-07-01 19:43:13 +0100 |
---|---|---|
committer | emersion <contact@emersion.fr> | 2018-07-04 19:12:18 +0100 |
commit | e665a7412212d8cbf241ba90f6828688d8a48f9e (patch) | |
tree | fe40c7aca9a382180d5e34596f2d45c50eb49436 | |
parent | 226306ed45a1bd9491107ff0b870b364eb25ca61 (diff) |
surface: don't clip input and opaque regions
These can be set to e.g. regions larger than the surface. If the
surface resizes itself, it doesn't need to set again these regions.
-rw-r--r-- | types/wlr_surface.c | 6 |
1 files changed, 0 insertions, 6 deletions
diff --git a/types/wlr_surface.c b/types/wlr_surface.c index a7ab17e4..87286d6d 100644 --- a/types/wlr_surface.c +++ b/types/wlr_surface.c @@ -166,12 +166,6 @@ static void surface_state_finalize(struct wlr_surface *surface, pixman_region32_intersect_rect(&state->buffer_damage, &state->buffer_damage, 0, 0, state->buffer_width, state->buffer_height); - - pixman_region32_intersect_rect(&state->opaque, &state->opaque, - 0, 0, state->width, state->height); - - pixman_region32_intersect_rect(&state->input, &state->input, - 0, 0, state->width, state->height); } static void surface_update_damage(pixman_region32_t *buffer_damage, |