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.
This commit is contained in:
Kristian Høgsberg
2012-04-21 14:14:20 -04:00
parent a4e8b33704
commit b10f1e3ab0
+1
View 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;