diff options
author | Kirill Primak <[email protected]> | 2022-01-13 11:55:09 +0300 |
---|---|---|
committer | Simon Ser <[email protected]> | 2022-01-13 10:06:41 +0000 |
commit | dd4ca1818a148d44e42b1504e73fe5b562af7481 (patch) | |
tree | 83105c371589b454ec02a341b2b0e2c8e952e0d7 /tinywl.c | |
parent | ce3d4b267dfd51db134ca5d752371498961c711f (diff) |
subcompositor: split out from compositor
Diffstat (limited to 'tinywl.c')
-rw-r--r-- | tinywl.c | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -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 |