From f0ce5b0c8d418a3bb5efb8131f107fe28ab5af23 Mon Sep 17 00:00:00 2001 From: trimental Date: Fri, 22 Feb 2019 22:30:59 +0800 Subject: [PATCH] On wayland, fix `with_title()` not setting the windows title (#770) --- CHANGELOG.md | 1 + src/platform/linux/wayland/window.rs | 2 ++ 2 files changed, 3 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index adfb5061d..ea03fc918 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,5 +1,6 @@ # Unreleased +- On Wayland, fix `with_title()` not setting the windows title - On Wayland, add `set_wayland_theme()` to control client decoration color theme - Added serde serialization to `os::unix::XWindowType`. - **Breaking:** `image` crate upgraded to 0.21. This is exposed as part of the `icon_loading` API. diff --git a/src/platform/linux/wayland/window.rs b/src/platform/linux/wayland/window.rs index 276986314..45ae3bd41 100644 --- a/src/platform/linux/wayland/window.rs +++ b/src/platform/linux/wayland/window.rs @@ -81,6 +81,8 @@ impl Window { frame.set_app_id(app_id); } + frame.set_title(attributes.title); + for &(_, ref seat) in evlp.seats.lock().unwrap().iter() { frame.new_seat(seat); }