Create a subcompositor

This commit is contained in:
cpli 2023-01-27 23:11:46 +01:00
parent 0605ff3e4d
commit 816625bba6
No known key found for this signature in database
GPG key ID: 7DCACEB4ACD21B55
2 changed files with 3 additions and 0 deletions

View file

@ -15,6 +15,7 @@
struct kiwmi_desktop { struct kiwmi_desktop {
struct wlr_compositor *compositor; struct wlr_compositor *compositor;
struct wlr_subcompositor *wlr_subcompositor;
struct wlr_xdg_shell *xdg_shell; struct wlr_xdg_shell *xdg_shell;
struct wlr_xdg_decoration_manager_v1 *xdg_decoration_manager; struct wlr_xdg_decoration_manager_v1 *xdg_decoration_manager;

View file

@ -18,6 +18,7 @@
#include <wlr/types/wlr_layer_shell_v1.h> #include <wlr/types/wlr_layer_shell_v1.h>
#include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_presentation_time.h> #include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_subcompositor.h>
#include <wlr/types/wlr_xdg_decoration_v1.h> #include <wlr/types/wlr_xdg_decoration_v1.h>
#include <wlr/types/wlr_xdg_output_v1.h> #include <wlr/types/wlr_xdg_output_v1.h>
#include <wlr/types/wlr_xdg_shell.h> #include <wlr/types/wlr_xdg_shell.h>
@ -41,6 +42,7 @@ desktop_init(struct kiwmi_desktop *desktop)
desktop->compositor = desktop->compositor =
wlr_compositor_create(server->wl_display, server->renderer); wlr_compositor_create(server->wl_display, server->renderer);
desktop->wlr_subcompositor = wlr_subcompositor_create(server->wl_display);
desktop->data_device_manager = desktop->data_device_manager =
wlr_data_device_manager_create(server->wl_display); wlr_data_device_manager_create(server->wl_display);
desktop->output_layout = wlr_output_layout_create(); desktop->output_layout = wlr_output_layout_create();