From 0586e48c707e3a306ce733ccf8ed37e108ddd796 Mon Sep 17 00:00:00 2001 From: Paul Delafosse Date: Fri, 6 Nov 2020 09:13:59 +0100 Subject: Add wayland app_id see: https://github.com/wayland-project/wayland-protocols/blob/4ed0cafeefd9f81b974465ca495cbd9118508cdb/stable/xdg-shell/xdg-shell.xml#L640 --- winit/src/settings.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'winit') diff --git a/winit/src/settings.rs b/winit/src/settings.rs index 743f79bc..4a0e1fe1 100644 --- a/winit/src/settings.rs +++ b/winit/src/settings.rs @@ -103,6 +103,12 @@ impl Window { .with_max_inner_size(winit::dpi::LogicalSize { width, height }); } + #[cfg(target_os = "linux")] + { + use ::winit::platform::unix::WindowBuilderExtUnix; + window_builder = window_builder.with_app_id(title.to_string()); + } + #[cfg(target_os = "windows")] { use winit::platform::windows::WindowBuilderExtWindows; -- cgit