summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPekka Paalanen <ppaalanen@gmail.com>2012-10-10 12:49:32 +0300
committerKristian Høgsberg <krh@bitplanet.net>2012-10-10 21:39:23 -0400
commit8ec4ab64f0e4025dc13ce9819ffc2291872e99c5 (patch)
treef09f9669963ae5ee8b380bfc264f82a189769eb5
parentbc10638cd97a332468993e982e1a122a16531504 (diff)
compositor: fix event-testthreads
event-test assumes, that even without the very first wl_surface.attach (and commit), the surface will have infinite (previously undef) input region. event-test simply has test-client to create a wl_surface, and then it forcefully sets its position and size, and assumes the input region is now the full surface, so that notify_motion() will hit it. Change Weston to initialize the input region to infinite, instead of empty. Signed-off-by: Pekka Paalanen <ppaalanen@gmail.com>
-rw-r--r--src/compositor.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/compositor.c b/src/compositor.c
index 4dd6d277..f4c933ed 100644
--- a/src/compositor.c
+++ b/src/compositor.c
@@ -247,7 +247,7 @@ weston_surface_create(struct weston_compositor *compositor)
pixman_region32_init(&surface->damage);
pixman_region32_init(&surface->opaque);
pixman_region32_init(&surface->clip);
- pixman_region32_init(&surface->input);
+ region_init_infinite(&surface->input);
pixman_region32_init(&surface->transform.opaque);
wl_list_init(&surface->frame_callback_list);