wayland: Add support for output device removal

Since we only receive an object id for the removed object we must try and
remove that from the list of devices based on that id.
This commit is contained in:
Rob Bradford
2013-02-14 13:28:07 +00:00
parent fab808f92c
commit 4e1d999940
3 changed files with 24 additions and 6 deletions

View File

@ -125,9 +125,14 @@ gdk_registry_handle_global(void *data, struct wl_registry *registry, uint32_t id
}
static void
gdk_registry_handle_global_remove(void *data,
struct wl_registry *registry, uint32_t name)
gdk_registry_handle_global_remove(void *data,
struct wl_registry *registry,
uint32_t id)
{
GdkWaylandDisplay *display_wayland = data;
/* We don't know what this item is - try as an output */
_gdk_wayland_screen_remove_output_by_id (display_wayland->screen, id);
}
static const struct wl_registry_listener registry_listener = {