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:
Kristian Høgsberg 2013-02-14 22:01:58 -05:00
parent 25bb696fc8
commit 81585e9d2a

View file

@ -827,6 +827,7 @@ weston_wm_window_draw_decoration(void *data)
}
if (window->surface && !window->fullscreen) {
pixman_region32_fini(&window->surface->pending.input);
pixman_region32_init_rect(&window->surface->pending.input,
t->margin, t->margin,
width - 2 * t->margin,