From c86727a89bc14e945c68eda2e95fd659b5abb2cb Mon Sep 17 00:00:00 2001 From: Maximilian Seidler <78690852+PointerDilemma@users.noreply.github.com> Date: Thu, 14 May 2026 16:04:58 +0200 Subject: [PATCH] core: skip binding to dmabuf when SCMODE is 1 (#1014) Co-authored-by: tmbull --- src/core/hyprlock.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/core/hyprlock.cpp b/src/core/hyprlock.cpp index 4a50b49..a9567b6 100644 --- a/src/core/hyprlock.cpp +++ b/src/core/hyprlock.cpp @@ -279,7 +279,8 @@ void CHyprlock::run() { Log::logger->log(Log::INFO, " | got iface: {} v{}", IFACE, version); if (IFACE == zwp_linux_dmabuf_v1_interface.name) { - if (!m_screencopyRequired) + static const auto SCMODE = g_pConfigManager->getValue("general:screencopy_mode"); + if (!m_screencopyRequired || *SCMODE == 1) return; if (version < 4) {