aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Duerr <contact@christianduerr.com>2019-02-05 17:03:46 +0100
committerChristian Duerr <contact@christianduerr.com>2019-02-05 17:03:46 +0100
commit84a8837b22c653755128a0fd40e693a8b1737e97 (patch)
tree6fb8a736452972ca1ed5f6b48ba105af9afd0f9b
parent851e77383ea764b793914696b29b4e6d95632ebb (diff)
downloadalacritty-84a8837b22c653755128a0fd40e693a8b1737e97.tar.gz
alacritty-84a8837b22c653755128a0fd40e693a8b1737e97.zip
Set window title on Wayland
Fixes #1582. Fixes #1875.
-rw-r--r--src/window.rs6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/window.rs b/src/window.rs
index 0f401528..370ed83c 100644
--- a/src/window.rs
+++ b/src/window.rs
@@ -272,7 +272,11 @@ impl Window {
)]
fn platform_builder_ext(window_builder: WindowBuilder, wm_class: &str) -> WindowBuilder {
use glutin::os::unix::WindowBuilderExt;
- window_builder.with_class(wm_class.to_owned(), "Alacritty".to_owned())
+ window_builder
+ // X11
+ .with_class(wm_class.to_owned(), "Alacritty".to_owned())
+ // Wayland
+ .with_app_id("Alacritty".to_owned())
}
#[cfg(