diff --git a/desktop/src/app.rs b/desktop/src/app.rs index 48b5b4c74a9c..c9e2ba82c099 100644 --- a/desktop/src/app.rs +++ b/desktop/src/app.rs @@ -439,12 +439,18 @@ impl ApplicationHandler for App { let preferred_height = self.preferences.cli.height; let start_fullscreen = self.preferences.cli.fullscreen; - let window_attributes = WindowAttributes::default() + let mut window_attributes = WindowAttributes::default() .with_visible(false) .with_title("Ruffle") .with_window_icon(Some(icon)) .with_min_inner_size(min_window_size); + #[cfg(target_os = "linux")] + { + use winit::platform::wayland::WindowAttributesExtWayland; + window_attributes = window_attributes.with_name("rs.ruffle.Ruffle", "main"); + } + let event_loop_proxy = self.event_loop_proxy.clone(); let preferences = self.preferences.clone(); let window = event_loop