mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2026-03-14 05:34:28 -04:00
backend/wayland: implement output layers
This commit is contained in:
parent
3e0ce761ad
commit
cd17b18495
3 changed files with 182 additions and 12 deletions
|
|
@ -393,6 +393,9 @@ static void registry_global(void *data, struct wl_registry *registry,
|
|||
} else if (strcmp(iface, xdg_activation_v1_interface.name) == 0) {
|
||||
wl->activation_v1 = wl_registry_bind(registry, name,
|
||||
&xdg_activation_v1_interface, 1);
|
||||
} else if (strcmp(iface, wl_subcompositor_interface.name) == 0) {
|
||||
wl->subcompositor = wl_registry_bind(registry, name,
|
||||
&wl_subcompositor_interface, 1);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
@ -500,6 +503,9 @@ static void backend_destroy(struct wlr_backend *backend) {
|
|||
if (wl->zwp_relative_pointer_manager_v1) {
|
||||
zwp_relative_pointer_manager_v1_destroy(wl->zwp_relative_pointer_manager_v1);
|
||||
}
|
||||
if (wl->subcompositor) {
|
||||
wl_subcompositor_destroy(wl->subcompositor);
|
||||
}
|
||||
free(wl->drm_render_name);
|
||||
free(wl->activation_token);
|
||||
xdg_wm_base_destroy(wl->xdg_wm_base);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue