Add screenshot support

This commit is contained in:
buffet 2019-12-04 16:54:46 +00:00
parent 815a8b96ad
commit 0f4657e279
2 changed files with 6 additions and 0 deletions

View file

@ -14,6 +14,7 @@
#include <wlr/types/wlr_compositor.h> #include <wlr/types/wlr_compositor.h>
#include <wlr/types/wlr_data_device.h> #include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_output_layout.h> #include <wlr/types/wlr_output_layout.h>
#include <wlr/types/wlr_xdg_output_v1.h>
#include "desktop/output.h" #include "desktop/output.h"
#include "server.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); wlr_data_device_manager_create(server->wl_display);
desktop->output_layout = wlr_output_layout_create(); desktop->output_layout = wlr_output_layout_create();
wlr_xdg_output_manager_v1_create(server->wl_display, desktop->output_layout);
wl_list_init(&desktop->outputs); wl_list_init(&desktop->outputs);
desktop->new_output.notify = new_output_notify; desktop->new_output.notify = new_output_notify;

View file

@ -16,6 +16,7 @@
#include <wayland-server.h> #include <wayland-server.h>
#include <wlr/backend.h> #include <wlr/backend.h>
#include <wlr/render/wlr_renderer.h> #include <wlr/render/wlr_renderer.h>
#include <wlr/types/wlr_screencopy_v1.h>
#include <wlr/util/log.h> #include <wlr/util/log.h>
#include "luak.h" #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; server->config_path = config_path;
if (!luaK_init(server)) { if (!luaK_init(server)) {