From 57702afc37f4a1742584182e9c6814c02b301107 Mon Sep 17 00:00:00 2001 From: vicrodh Date: Sun, 8 Mar 2026 09:43:57 -0600 Subject: [PATCH] fix: respect force_dmabuf as full GPU opt-in for compositing too (#127) When user enables Force DMA-BUF in Developer Settings, skip the NVIDIA+Wayland compositing disable. This setting signals "I want full GPU acceleration" and should grant both DMA-BUF and compositing. --- src-tauri/src/main.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src-tauri/src/main.rs b/src-tauri/src/main.rs index 0d1932926..9be589f07 100644 --- a/src-tauri/src/main.rs +++ b/src-tauri/src/main.rs @@ -474,14 +474,15 @@ fn main() { // --- Compositing mode --- // NVIDIA on Wayland has protocol errors with compositing. // AMD/Intel on native Wayland can handle compositing fine. - if is_wayland && !force_x11 && has_nvidia && !has_amd { + // If user forced DMA-BUF on, they want full GPU — skip compositing disable too. + if is_wayland && !force_x11 && has_nvidia && !has_amd && !force_dmabuf { std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1"); qbz_nix_lib::logging::log_startup( "[QBZ] Wayland+NVIDIA: compositing mode disabled (prevents protocol errors)", ); } else if is_wayland && !force_x11 { qbz_nix_lib::logging::log_startup( - "[QBZ] Wayland: compositing mode enabled (AMD/Intel native)", + "[QBZ] Wayland: compositing mode enabled", ); }