compositor: Damage sprite surface on attach

Normally the client is responsible for damaging the surface after attach,
but the sprite surface is an internal surface.
This commit is contained in:
Kristian Høgsberg 2012-03-01 17:10:25 -05:00
parent 867dec7ff0
commit 525696851e

View File

@ -1833,6 +1833,7 @@ input_device_attach(struct wl_client *client,
buffer->width, buffer->height); buffer->width, buffer->height);
weston_buffer_attach(buffer, &device->sprite->surface); weston_buffer_attach(buffer, &device->sprite->surface);
weston_surface_damage(device->sprite);
} }
const static struct wl_input_device_interface input_device_interface = { const static struct wl_input_device_interface input_device_interface = {