Add new surfaces to client hash table.

dev
Kristian Høgsberg 16 years ago
parent 4a35fc2563
commit 2c837483ec
  1. 1
      wayland-client.c

@ -566,6 +566,7 @@ wl_compositor_create_surface(struct wl_compositor *compositor)
surface->proxy.base.interface = &wl_surface_interface;
surface->proxy.base.id = wl_display_allocate_id(compositor->proxy.display);
surface->proxy.display = compositor->proxy.display;
wl_hash_insert(compositor->proxy.display->objects, &surface->proxy.base);
wl_proxy_marshal(&compositor->proxy,
WL_COMPOSITOR_CREATE_SURFACE, surface);

Loading…
Cancel
Save