mirror of
https://github.com/hyprwm/wlroots-hyprland.git
synced 2024-11-22 21:05:58 +01:00
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.
This commit is contained in:
parent
226306ed45
commit
e665a74122
1 changed files with 0 additions and 6 deletions
|
@ -166,12 +166,6 @@ static void surface_state_finalize(struct wlr_surface *surface,
|
||||||
pixman_region32_intersect_rect(&state->buffer_damage,
|
pixman_region32_intersect_rect(&state->buffer_damage,
|
||||||
&state->buffer_damage, 0, 0, state->buffer_width,
|
&state->buffer_damage, 0, 0, state->buffer_width,
|
||||||
state->buffer_height);
|
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,
|
static void surface_update_damage(pixman_region32_t *buffer_damage,
|
||||||
|
|
Loading…
Reference in a new issue