From 0f4657e2795c776fe9e3e210a05e4d74985b504f Mon Sep 17 00:00:00 2001 From: Charlotte Meyer Date: Wed, 4 Dec 2019 16:54:46 +0000 Subject: [PATCH] Add screenshot support --- kiwmi/desktop/desktop.c | 3 +++ kiwmi/server.c | 3 +++ 2 files changed, 6 insertions(+) diff --git a/kiwmi/desktop/desktop.c b/kiwmi/desktop/desktop.c index da2341e..b7b2254 100644 --- a/kiwmi/desktop/desktop.c +++ b/kiwmi/desktop/desktop.c @@ -14,6 +14,7 @@ #include #include #include +#include #include "desktop/output.h" #include "server.h" @@ -27,6 +28,8 @@ desktop_init(struct kiwmi_desktop *desktop, struct wlr_renderer *renderer) wlr_data_device_manager_create(server->wl_display); desktop->output_layout = wlr_output_layout_create(); + wlr_xdg_output_manager_v1_create(server->wl_display, desktop->output_layout); + wl_list_init(&desktop->outputs); desktop->new_output.notify = new_output_notify; diff --git a/kiwmi/server.c b/kiwmi/server.c index c4e427b..de15022 100644 --- a/kiwmi/server.c +++ b/kiwmi/server.c @@ -16,6 +16,7 @@ #include #include #include +#include #include #include "luak.h" @@ -74,6 +75,8 @@ server_init(struct kiwmi_server *server, char *config_path) } } + wlr_screencopy_manager_v1_create(server->wl_display); + server->config_path = config_path; if (!luaK_init(server)) {