mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2026-02-26 01:40:41 -05:00
Drop wl_display_set_compositor() special case
This commit is contained in:
parent
9d69f8e796
commit
f8ffded1e5
2 changed files with 7 additions and 16 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue