Fix window clicking on Linux

This commit is contained in:
Gregory Schier
2024-05-14 12:19:19 -07:00
parent 1f88b7a41a
commit 2c70b8bb0f
2 changed files with 6794 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1721,6 +1721,9 @@ fn is_dev() -> bool {
fn create_window(handle: &AppHandle, url: Option<&str>) -> WebviewWindow {
let menu = app_menu(handle).unwrap();
// This causes the window to not be clickable (in AppImage), so disable on Linux
#[cfg(not(target_os = "linux"))]
handle.set_menu(menu).expect("Failed to set app menu");
let window_num = handle.webview_windows().len();