xwm: Set input region for fullscreen surfaces correctly

The logic here broke at some point so that we would only update the
input region for non-fullscreen windows.  Thus, a fullscreen window would
be stuck with whatever size the most recent non-fullscreen size was.

https://bugs.freedesktop.org/show_bug.cgi?id=69219
This commit is contained in:
Kristian Høgsberg 2013-10-30 23:46:08 -07:00
parent f74b6e1596
commit a27d6f3ece

View file

@ -938,14 +938,18 @@ weston_wm_window_draw_decoration(void *data)
window->height + 2);
}
weston_surface_geometry_dirty(window->surface);
}
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,
height - 2 * t->margin);
if (window->fullscreen) {
pixman_region32_init_rect(&window->surface->pending.input,
0, 0, window->width, window->height);
} else if (window->decorate) {
pixman_region32_init_rect(&window->surface->pending.input,
t->margin, t->margin,
width - 2 * t->margin,
height - 2 * t->margin);
}
}
}