xwm: Don't leak pending.input region
It's not really a leak, since the region is always a rectangle, but let's play by the rules.
This commit is contained in:
parent
25bb696fc8
commit
81585e9d2a
@ -827,6 +827,7 @@ weston_wm_window_draw_decoration(void *data)
|
|||||||
}
|
}
|
||||||
|
|
||||||
if (window->surface && !window->fullscreen) {
|
if (window->surface && !window->fullscreen) {
|
||||||
|
pixman_region32_fini(&window->surface->pending.input);
|
||||||
pixman_region32_init_rect(&window->surface->pending.input,
|
pixman_region32_init_rect(&window->surface->pending.input,
|
||||||
t->margin, t->margin,
|
t->margin, t->margin,
|
||||||
width - 2 * t->margin,
|
width - 2 * t->margin,
|
||||||
|
Loading…
Reference in New Issue
Block a user