From ec9731e1e50d24f23e226893a13d794757577004 Mon Sep 17 00:00:00 2001 From: Luke Street Date: Sat, 28 Sep 2024 10:53:58 -0600 Subject: [PATCH] Set app_id in eframe NativeOptions Fixes missing WM_CLASS on Wayland --- objdiff-gui/src/main.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/objdiff-gui/src/main.rs b/objdiff-gui/src/main.rs index 73763ea..18e6b7f 100644 --- a/objdiff-gui/src/main.rs +++ b/objdiff-gui/src/main.rs @@ -58,7 +58,10 @@ fn main() -> ExitCode { let app_path = std::env::current_exe().ok(); let exec_path: Rc>> = Rc::new(Mutex::new(None)); - let mut native_options = eframe::NativeOptions::default(); + let mut native_options = eframe::NativeOptions { + viewport: egui::ViewportBuilder::default().with_app_id(APP_NAME), + ..Default::default() + }; match load_icon() { Ok(data) => { native_options.viewport.icon = Some(Arc::new(data));