core: skip binding to dmabuf when SCMODE is 1 (#1014)

Co-authored-by: tmbull <tristan.m.bull@gmail.com>
This commit is contained in:
Maximilian Seidler 2026-05-14 16:04:58 +02:00 committed by GitHub
parent b5a8374b01
commit c86727a89b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

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) {