core: skip binding to dmabuf when SCMODE is 1

Co-authored-by: tmbull <tristan.m.bull@gmail.com>
This commit is contained in:
Maximilian Seidler 2026-05-05 17:20:00 +02:00
parent b5a8374b01
commit a69bf6f350

View file

@ -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<Hyprlang::INT>("general:screencopy_mode");
if (!m_screencopyRequired || *SCMODE == 1)
return;
if (version < 4) {