compositor: Set pointer surface input region to empty on attach
authorKristian Høgsberg <krh@bitplanet.net>
Sat, 21 Apr 2012 18:14:20 +0000 (14:14 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Sun, 22 Apr 2012 03:21:08 +0000 (23:21 -0400)
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

index 2b46fbc..768477d 100644 (file)
@@ -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;