mirror of
https://gitlab.freedesktop.org/wlroots/wlroots.git
synced 2025-11-08 13:29:45 -05:00
backend/wayland: implement the output layer API
The output layer API is implemented using subsurfaces. I chose to implement this API in the Wayland backend before doing so in the DRM backend, because it's way easier on Wayland. On DRM, one needs to figure out how buffers can be mapped to KMS planes (libliftoff can help) and perform atomic test-only commits (our current DRM backend isn't ready for this).
This commit is contained in:
parent
0fad58760a
commit
60f314780b
3 changed files with 168 additions and 1 deletions
|
|
@ -102,6 +102,9 @@ static void registry_global(void *data, struct wl_registry *registry,
|
|||
if (strcmp(iface, wl_compositor_interface.name) == 0) {
|
||||
wl->compositor = wl_registry_bind(registry, name,
|
||||
&wl_compositor_interface, 4);
|
||||
} else if (strcmp(iface, wl_subcompositor_interface.name) == 0) {
|
||||
wl->subcompositor = wl_registry_bind(registry, name,
|
||||
&wl_subcompositor_interface, 1);
|
||||
} else if (strcmp(iface, wl_seat_interface.name) == 0) {
|
||||
wl->seat = wl_registry_bind(registry, name,
|
||||
&wl_seat_interface, 5);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue