server: support screen recording

Works with wf-recorder
This commit is contained in:
Johan Malm 2020-09-21 19:52:14 +01:00
parent d8e32040a5
commit 60f9624a19

View file

@ -5,6 +5,7 @@
#include <wlr/types/wlr_data_control_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_primary_selection_v1.h>
#include <wlr/types/wlr_xdg_output_v1.h>
static struct wlr_backend *backend;
static struct wlr_compositor *compositor;
@ -226,6 +227,8 @@ void server_init(struct server *server)
wlr_data_control_manager_v1_create(server->wl_display);
wlr_gamma_control_manager_v1_create(server->wl_display);
wlr_primary_selection_v1_device_manager_create(server->wl_display);
wlr_xdg_output_manager_v1_create(server->wl_display,
server->output_layout);
/* Init xwayland */
server->xwayland =