Support screencopy

This commit is contained in:
Johan Malm 2019-12-16 21:19:50 +00:00
parent 2d12a8778e
commit 0cb1c6213b

12
main.c
View file

@ -1,5 +1,11 @@
#include "labwc.h"
#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_screencopy_v1.h>
#include <wlr/types/wlr_data_control_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_primary_selection_v1.h>
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();