From 4268383f0f79c01db2d1f9b5c1d9ab1cc097efae Mon Sep 17 00:00:00 2001 From: dec05eba Date: Fri, 9 Feb 2024 00:50:29 +0100 Subject: Remove wayland capture (wlroots) --- src/egl.c | 20 -------------------- 1 file changed, 20 deletions(-) (limited to 'src/egl.c') diff --git a/src/egl.c b/src/egl.c index 0b9affd..0ad9f13 100644 --- a/src/egl.c +++ b/src/egl.c @@ -8,7 +8,6 @@ #include #include -#include "../external/wlr-export-dmabuf-unstable-v1-client-protocol.h" #include static void output_handle_geometry(void *data, struct wl_output *wl_output, @@ -102,12 +101,6 @@ static void registry_add_object(void *data, struct wl_registry *registry, uint32 .name = NULL, }; wl_output_add_listener(gsr_output->output, &output_listener, gsr_output); - } else if(strcmp(interface, zwlr_export_dmabuf_manager_v1_interface.name) == 0) { - if(egl->wayland.export_manager) { - zwlr_export_dmabuf_manager_v1_destroy(egl->wayland.export_manager); - egl->wayland.export_manager = NULL; - } - egl->wayland.export_manager = wl_registry_bind(registry, name, &zwlr_export_dmabuf_manager_v1_interface, 1); } } @@ -318,11 +311,6 @@ void gsr_egl_unload(gsr_egl *self) { self->x11.window = None; } - if(self->wayland.export_manager) { - zwlr_export_dmabuf_manager_v1_destroy(self->wayland.export_manager); - self->wayland.export_manager = NULL; - } - if(self->wayland.window) { wl_egl_window_destroy(self->wayland.window); self->wayland.window = NULL; @@ -373,11 +361,3 @@ void gsr_egl_unload(gsr_egl *self) { memset(self, 0, sizeof(gsr_egl)); } - -bool gsr_egl_supports_wayland_capture(gsr_egl *self) { - // TODO: wlroots capture is broken right now (black screen) on amd and multiple monitors - // so it has to be disabled right now. Find out why it happens and fix it. - (void)self; - return false; - //return !!self->wayland.export_manager && self->wayland.num_outputs > 0; -} -- cgit v1.2.3