[PATCH weston 07/12] shell: do not double-init input region

Pekka Paalanen ppaalanen at gmail.com
Wed Oct 10 02:49:29 PDT 2012


weston_surface_create() already inits the input region.

Signed-off-by: Pekka Paalanen <ppaalanen at gmail.com>
---
 src/shell.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/src/shell.c b/src/shell.c
index 4600be3..f9aa546 100644
--- a/src/shell.c
+++ b/src/shell.c
@@ -3475,6 +3475,7 @@ debug_repaint_binding(struct wl_seat *seat, uint32_t time, uint32_t key,
 		weston_surface_configure(surface, 0, 0, 8192, 8192);
 		wl_list_insert(&compositor->fade_layer.surface_list,
 			       &surface->layer_link);
+		pixman_region32_fini(&surface->input);
 		pixman_region32_init(&surface->input);
 
 		/* Here's the dirty little trick that makes the
-- 
1.7.8.6



More information about the wayland-devel mailing list