diff options
| author | Kristian Høgsberg <krh@bitplanet.net> | 2010-09-03 15:15:33 -0400 |
|---|---|---|
| committer | Kristian Høgsberg <krh@bitplanet.net> | 2010-09-03 15:15:33 -0400 |
| commit | f8ffded1e59d9e723d830b5a445ca386ea31ec21 (patch) | |
| tree | 11487c4a2229b03aff2db65db69fd2bce2e30088 /compositor.c | |
| parent | Replace commit/ack/frame protocol with simpler sync and frame callbacks (diff) | |
| download | wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.tar wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.tar.gz wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.tar.bz2 wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.tar.lz wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.tar.xz wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.tar.zst wayland-f8ffded1e59d9e723d830b5a445ca386ea31ec21.zip | |
Drop wl_display_set_compositor() special case
Diffstat (limited to 'compositor.c')
| -rw-r--r-- | compositor.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/compositor.c b/compositor.c index a805f8c..8bf6485 100644 --- a/compositor.c +++ b/compositor.c @@ -1376,7 +1376,13 @@ wlsc_compositor_init(struct wlsc_compositor *ec, struct wl_display *display) ec->wl_display = display; - wl_display_set_compositor(display, &ec->base, &compositor_interface); + ec->base.base.interface = &wl_compositor_interface; + ec->base.base.implementation = + (void (**)(void)) &compositor_interface; + + wl_display_add_object(display, &ec->base.base); + if (wl_display_add_global(display, &ec->base.base, NULL)) + return -1; ec->shell.base.interface = &wl_shell_interface; ec->shell.base.implementation = (void (**)(void)) &shell_interface; |
