From: Johan Malm Date: Mon, 16 Dec 2019 21:19:50 +0000 (+0000) Subject: Support screencopy X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=0cb1c6213b4a11269bf225db9068344b47d11c53;p=proto%2Flabwc.git Support screencopy --- diff --git a/main.c b/main.c index 40354a58..2a34211a 100644 --- a/main.c +++ b/main.c @@ -1,5 +1,11 @@ #include "labwc.h" +#include +#include +#include +#include +#include + static struct tinywl_view *next_toplevel(struct tinywl_view *current); static bool is_toplevel(struct tinywl_view *view); static void process_cursor_move(struct tinywl_server *server, uint32_t time); @@ -1044,6 +1050,12 @@ int main(int argc, char *argv[]) { server.compositor = wlr_compositor_create(server.wl_display, server.renderer); wlr_data_device_manager_create(server.wl_display); + wlr_export_dmabuf_manager_v1_create(server.wl_display); + wlr_screencopy_manager_v1_create(server.wl_display); + 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); + /* Creates an output layout, which a wlroots utility for working with an * arrangement of screens in a physical layout. */ server.output_layout = wlr_output_layout_create();