Fix window clicking on Linux

This commit is contained in:
Gregory Schier
2024-05-14 12:19:19 -07:00
parent ad1a4eadd9
commit eb5f9a4671
3 changed files with 6797 additions and 6 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();