Skip to content

Commit

Permalink
fix: 修复WebKitGTK的渲染问题
Browse files Browse the repository at this point in the history
  • Loading branch information
Pylogmon committed May 27, 2023
1 parent ad80dc2 commit c8a7ec1
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src-tauri/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,10 @@ fn main() {
return;
}

// 修复WebKitGTK的渲染问题 https://github.com/tauri-apps/tauri/issues/5143
#[cfg(not(target_os = "windows"))]
std::env::set_var("WEBKIT_DISABLE_COMPOSITING_MODE", "1");

tauri::Builder::default()
// 单例运行
.plugin(tauri_plugin_single_instance::init(|app, argv, cwd| {
Expand Down

0 comments on commit c8a7ec1

Please sign in to comment.