Create a subcompositor
This commit is contained in:
parent
0605ff3e4d
commit
816625bba6
2 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Add table
Reference in a new issue