From b10f1e3ab0be973de4a31b22e9b2f2322b0b4a6a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kristian=20H=C3=B8gsberg?= Date: Sat, 21 Apr 2012 14:14:20 -0400 Subject: [PATCH] compositor: Set pointer surface input region to empty on attach We set up an emtpy region for the initial NULL-cursor, and then going from no buffer to a 32x32 buffer didn't trigger the undeffing of the input region. So when something sets a cursor of a different size, the cursor surface input region gets initialized and starts swallowing events. --- src/compositor.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/compositor.c b/src/compositor.c index 2b46fbca..768477de 100644 --- a/src/compositor.c +++ b/src/compositor.c @@ -1959,6 +1959,7 @@ input_device_attach(struct wl_client *client, buffer = buffer_resource->data; weston_surface_attach(&device->sprite->surface, buffer); + empty_region(&device->sprite->input); if (!buffer) return;