diff options
author | Kirill Primak <vyivel@eclair.cafe> | 2022-01-13 11:55:09 +0300 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2022-01-13 10:06:41 +0000 |
commit | b6f43ab2e16931c5604b7e570edf481b3392fd25 (patch) | |
tree | 6c2fea127332affac5d467a933b71fa35da6a6ec /tinywl | |
parent | 6cdf843a8cef420255e0a55c842530184abb3fe4 (diff) |
subcompositor: split out from compositor
Diffstat (limited to 'tinywl')
-rw-r--r-- | tinywl/tinywl.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tinywl/tinywl.c b/tinywl/tinywl.c index faa0a9a1..722abd10 100644 --- a/tinywl/tinywl.c +++ b/tinywl/tinywl.c @@ -20,6 +20,7 @@ #include <wlr/types/wlr_pointer.h> #include <wlr/types/wlr_scene.h> #include <wlr/types/wlr_seat.h> +#include <wlr/types/wlr_subcompositor.h> #include <wlr/types/wlr_xcursor_manager.h> #include <wlr/types/wlr_xdg_shell.h> #include <wlr/util/log.h> @@ -756,12 +757,14 @@ int main(int argc, char *argv[]) { server.renderer); /* This creates some hands-off wlroots interfaces. The compositor is - * necessary for clients to allocate surfaces and the data device manager + * necessary for clients to allocate surfaces, the subcompositor allows to + * assign the role of subsurfaces to surfaces and the data device manager * handles the clipboard. Each of these wlroots interfaces has room for you * to dig your fingers in and play with their behavior if you want. Note that * the clients cannot set the selection directly without compositor approval, * see the handling of the request_set_selection event below.*/ wlr_compositor_create(server.wl_display, server.renderer); + wlr_subcompositor_create(server.wl_display); wlr_data_device_manager_create(server.wl_display); /* Creates an output layout, which a wlroots utility for working with an |