From 1b846190b8ab6f24d42671dee70d5941ef26555a Mon Sep 17 00:00:00 2001
From: Simon Ser <contact@emersion.fr>
Date: Sun, 2 Jun 2019 13:37:34 +0300
Subject: [PATCH 2/2] Remove orbital screenshooter
This is an undocumented, outdated protocols and has a better wlr-protocols
equivalent.
(cherry picked from wlroots 3dec88e4555ee5fd95ffd69133623816cb0c25c4)
(cherry picked from commit c095773625589207554329d66a4a1b1537b81635)
---
src/desktop.c | 1 -
src/desktop.h | 2 --
2 files changed, 3 deletions(-)
diff --git a/src/desktop.c b/src/desktop.c
index a5455e0..6e2ba83 100644
--- a/src/desktop.c
+++ b/src/desktop.c
@@ -474,7 +474,6 @@ phoc_desktop_constructed (GObject *object)
self->gamma_control_manager = wlr_gamma_control_manager_create(server->wl_display);
#endif
self->gamma_control_manager_v1 = wlr_gamma_control_manager_v1_create(server->wl_display);
- self->screenshooter = wlr_screenshooter_create(server->wl_display);
self->export_dmabuf_manager_v1 =
wlr_export_dmabuf_manager_v1_create(server->wl_display);
self->server_decoration_manager =
diff --git a/src/desktop.h b/src/desktop.h
index 291b003..58555dc 100644
--- a/src/desktop.h
+++ b/src/desktop.h
@@ -23,7 +23,6 @@
#include <wlr/types/wlr_presentation_time.h>
#include <wlr/types/wlr_relative_pointer_v1.h>
#include <wlr/types/wlr_screencopy_v1.h>
-#include <wlr/types/wlr_screenshooter.h>
#include <wlr/types/wlr_text_input_v3.h>
#include <wlr/types/wlr_virtual_keyboard_v1.h>
#include <wlr/types/wlr_xcursor_manager.h>
@@ -68,7 +67,6 @@ struct _PhocDesktop {
struct wlr_gamma_control_manager *gamma_control_manager;
#endif
struct wlr_gamma_control_manager_v1 *gamma_control_manager_v1;
- struct wlr_screenshooter *screenshooter;
struct wlr_export_dmabuf_manager_v1 *export_dmabuf_manager_v1;
struct wlr_server_decoration_manager *server_decoration_manager;
struct wlr_xdg_decoration_manager_v1 *xdg_decoration_manager;
--
2.23.0