summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-05-09 22:01:19 +0100
committerVaxry <vaxry@vaxry.net>2024-05-09 22:02:19 +0100
commit4f26ae70fde3b4cd5ad8ef096a7f0cb6c2dc5528 (patch)
tree101fe261c58842421b8b35f6e938ddf7f4b60b7b /src
parenteeebbc0e7ee842a9572fa533cb8d01a8114f9ec9 (diff)
core: drop unused protocol impls
xdg_foreign is not used by hyprland wlr_export_dmabuf is old, broken and unused as well
Diffstat (limited to 'src')
-rw-r--r--src/Compositor.cpp6
-rw-r--r--src/Compositor.hpp1
-rw-r--r--src/includes.hpp4
3 files changed, 0 insertions, 11 deletions
diff --git a/src/Compositor.cpp b/src/Compositor.cpp
index da2b643c..5de30a74 100644
--- a/src/Compositor.cpp
+++ b/src/Compositor.cpp
@@ -224,7 +224,6 @@ void CCompositor::initServer() {
m_sWLRSubCompositor = wlr_subcompositor_create(m_sWLDisplay);
m_sWLRDataDevMgr = wlr_data_device_manager_create(m_sWLDisplay);
- wlr_export_dmabuf_manager_v1_create(m_sWLDisplay);
wlr_data_control_manager_v1_create(m_sWLDisplay);
wlr_primary_selection_v1_device_manager_create(m_sWLDisplay);
wlr_viewporter_create(m_sWLDisplay);
@@ -241,11 +240,6 @@ void CCompositor::initServer() {
Debug::log(INFO, "VR will not be available");
}
- m_sWLRForeignRegistry = wlr_xdg_foreign_registry_create(m_sWLDisplay);
-
- wlr_xdg_foreign_v1_create(m_sWLDisplay, m_sWLRForeignRegistry);
- wlr_xdg_foreign_v2_create(m_sWLDisplay, m_sWLRForeignRegistry);
-
m_sWLRHeadlessBackend = wlr_headless_backend_create(m_sWLEventLoop);
if (!m_sWLRHeadlessBackend) {
diff --git a/src/Compositor.hpp b/src/Compositor.hpp
index 9659df5c..20437113 100644
--- a/src/Compositor.hpp
+++ b/src/Compositor.hpp
@@ -55,7 +55,6 @@ class CCompositor {
wlr_presentation* m_sWLRPresentation;
wlr_egl* m_sWLREGL;
int m_iDRMFD;
- wlr_xdg_foreign_registry* m_sWLRForeignRegistry;
wlr_linux_dmabuf_v1* m_sWLRLinuxDMABuf;
wlr_backend* m_sWLRHeadlessBackend;
// ------------------------------------------------- //
diff --git a/src/includes.hpp b/src/includes.hpp
index c16fe777..98416a1a 100644
--- a/src/includes.hpp
+++ b/src/includes.hpp
@@ -43,7 +43,6 @@ extern "C" {
#include <wlr/types/wlr_data_device.h>
#include <wlr/types/wlr_drm_lease_v1.h>
#include <wlr/types/wlr_drm.h>
-#include <wlr/types/wlr_export_dmabuf_v1.h>
#include <wlr/types/wlr_linux_dmabuf_v1.h>
#include <wlr/types/wlr_gamma_control_v1.h>
#include <wlr/types/wlr_input_device.h>
@@ -74,9 +73,6 @@ extern "C" {
#include <wlr/render/wlr_texture.h>
#include <wlr/interfaces/wlr_keyboard.h>
#include <wlr/interfaces/wlr_pointer.h>
-#include <wlr/types/wlr_xdg_foreign_registry.h>
-#include <wlr/types/wlr_xdg_foreign_v1.h>
-#include <wlr/types/wlr_xdg_foreign_v2.h>
#include <wlr/types/wlr_touch.h>
#include <wlr/types/wlr_switch.h>
#include <wlr/config.h>