compositor: Track bound resources for input device

dev
Kristian Høgsberg 13 years ago
parent 57295ebf20
commit 8e6d71247e
  1. 6
      compositor/compositor.c

@ -1632,8 +1632,12 @@ static void
bind_input_device(struct wl_client *client,
void *data, uint32_t version, uint32_t id)
{
wl_client_add_object(client, &wl_display_interface,
struct wl_input_device *device = data;
struct wl_resource *resource;
resource = wl_client_add_object(client, &wl_input_device_interface,
&input_device_interface, id, data);
wl_list_insert(&device->resource_list, &resource->link);
}
WL_EXPORT void

Loading…
Cancel
Save