Fix blank window on Wayland (Hyprland) — disable WebKit DMA-BUF renderer

Sets WEBKIT_DISABLE_DMABUF_RENDERER=1 on Linux before Tauri initialises.
Prevents EGL_BAD_PARAMETER crash in WebKit's GPU process on compositors
like Hyprland that don't expose the required EGL display extensions.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Jure
2026-03-09 20:01:16 +01:00
parent 1b32072c37
commit 515eb2c81c

View File

@@ -2,5 +2,10 @@
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
fn main() {
// Disable WebKit DMA-BUF renderer which causes blank windows on some
// Wayland compositors (Hyprland, etc.) due to EGL_BAD_PARAMETER errors.
#[cfg(target_os = "linux")]
std::env::set_var("WEBKIT_DISABLE_DMABUF_RENDERER", "1");
wrystr_lib::run()
}