mirror of
https://github.com/hyprwm/hyprlock.git
synced 2026-05-19 19:28:08 +02:00
core: skip binding to dmabuf when SCMODE is 1 (#1014)
Co-authored-by: tmbull <tristan.m.bull@gmail.com>
This commit is contained in:
parent
b5a8374b01
commit
c86727a89b
1 changed files with 2 additions and 1 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue