Skip to content

Commit ec9731e

Browse files
committed
Set app_id in eframe NativeOptions
Fixes missing WM_CLASS on Wayland
1 parent a06382c commit ec9731e

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

objdiff-gui/src/main.rs

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,10 @@ fn main() -> ExitCode {
5858

5959
let app_path = std::env::current_exe().ok();
6060
let exec_path: Rc<Mutex<Option<PathBuf>>> = Rc::new(Mutex::new(None));
61-
let mut native_options = eframe::NativeOptions::default();
61+
let mut native_options = eframe::NativeOptions {
62+
viewport: egui::ViewportBuilder::default().with_app_id(APP_NAME),
63+
..Default::default()
64+
};
6265
match load_icon() {
6366
Ok(data) => {
6467
native_options.viewport.icon = Some(Arc::new(data));

0 commit comments

Comments
 (0)