compositor: drop wl_display_add_object()
authorKristian Høgsberg <krh@bitplanet.net>
Fri, 19 Aug 2011 16:07:44 +0000 (12:07 -0400)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 29 Aug 2011 21:12:36 +0000 (17:12 -0400)
compositor/compositor.c
compositor/meego-tablet-shell.c
compositor/screenshooter.c
compositor/shell.c
compositor/xserver-launcher.c

index 9c01468..0daf206 100644 (file)
@@ -1635,8 +1635,6 @@ wlsc_input_device_init(struct wlsc_input_device *device,
        device->input_device.resource.object.implementation =
                (void (**)(void)) &input_device_interface;
        device->input_device.resource.data = device;
-       wl_display_add_object(ec->wl_display,
-                             &device->input_device.resource.object);
        wl_display_add_global(ec->wl_display,
                              &device->input_device.resource.object, NULL);
 
@@ -1861,7 +1859,6 @@ wlsc_output_init(struct wlsc_output *output, struct wlsc_compositor *c,
        wl_list_init(&output->frame_callback_list);
 
        output->resource.object.interface = &wl_output_interface;
-       wl_display_add_object(c->wl_display, &output->resource.object);
        wl_display_add_global(c->wl_display, &output->resource.object,
                              wlsc_output_post_geometry);
 }
index 8d7dfe0..26c4c08 100644 (file)
@@ -656,7 +656,6 @@ shell_init(struct wlsc_compositor *compositor)
        shell->resource.object.interface = &meego_tablet_shell_interface;
        shell->resource.object.implementation =
                (void (**)(void)) &tablet_shell_interface;
-       wl_display_add_object(compositor->wl_display, &shell->resource.object);
 
        /* FIXME: This will make the object available to all clients. */
        wl_display_add_global(compositor->wl_display,
index 2cf1be6..9df13d7 100644 (file)
@@ -64,6 +64,5 @@ screenshooter_create(struct wlsc_compositor *ec)
                (void(**)(void)) &screenshooter_implementation;
        shooter->ec = ec;
 
-       wl_display_add_object(ec->wl_display, &shooter->base);
        wl_display_add_global(ec->wl_display, &shooter->base, NULL);
 };
index 251d17a..2333ad6 100644 (file)
@@ -510,7 +510,8 @@ drag_activate(struct wl_client *client,
        drag->drag_offer.resource.object.implementation =
                (void (**)(void)) &drag_offer_interface;
 
-       wl_display_add_object(display, &drag->drag_offer.resource.object);
+       wl_display_add_global(display,
+                             &drag->drag_offer.resource.object, NULL);
 
        target = pick_surface(device, &sx, &sy);
        wl_input_device_set_pointer_focus(device, NULL, time, 0, 0, 0, 0);
@@ -660,8 +661,9 @@ selection_activate(struct wl_client *client,
        selection->selection_offer.resource.object.implementation =
                (void (**)(void)) &selection_offer_interface;
 
-       wl_display_add_object(display,
-                             &selection->selection_offer.resource.object);
+       wl_display_add_global(display,
+                             &selection->selection_offer.resource.object,
+                             NULL);
 
        if (wd->selection) {
                wl_resource_post_event(&wd->selection->resource,
@@ -828,7 +830,6 @@ shell_init(struct wlsc_compositor *ec)
 
        shell->object.interface = &wl_shell_interface;
        shell->object.implementation = (void (**)(void)) &shell_interface;
-       wl_display_add_object(ec->wl_display, &shell->object);
        if (wl_display_add_global(ec->wl_display, &shell->object, NULL))
                return -1;
 
index 72b02dd..51c2352 100644 (file)
@@ -797,7 +797,6 @@ wlsc_xserver_init(struct wlsc_compositor *compositor)
        mxs->xserver.resource.object.interface = &xserver_interface;
        mxs->xserver.resource.object.implementation =
                (void (**)(void)) &xserver_implementation;
-       wl_display_add_object(display, &mxs->xserver.resource.object);
        wl_display_add_global(display, &mxs->xserver.resource.object,
                              wlsc_xserver_bind);