[metacity] window-props: convert WM_CLASS to UTF-8
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [metacity] window-props: convert WM_CLASS to UTF-8
- Date: Mon, 19 Nov 2018 16:36:56 +0000 (UTC)
commit 8ae75e57a5c4f5e152a8ed4cf71f8632ac2ee8be
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Mon Nov 19 18:31:08 2018 +0200
window-props: convert WM_CLASS to UTF-8
WM_NAME part is fixed differently in 206ef11aa9d09c91 commit.
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/commit/d62491f46eba748ece82
src/core/window-props.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/core/window-props.c b/src/core/window-props.c
index 9001d881..32f47614 100644
--- a/src/core/window-props.c
+++ b/src/core/window-props.c
@@ -1009,10 +1009,12 @@ reload_wm_class (MetaWindow *window,
if (value->type != META_PROP_VALUE_INVALID)
{
if (value->v.class_hint.res_name)
- window->res_name = g_strdup (value->v.class_hint.res_name);
+ window->res_name = g_convert (value->v.class_hint.res_name, -1,
+ "UTF-8", "LATIN1", NULL, NULL, NULL);
if (value->v.class_hint.res_class)
- window->res_class = g_strdup (value->v.class_hint.res_class);
+ window->res_class = g_convert (value->v.class_hint.res_class, -1,
+ "UTF-8", "LATIN1", NULL, NULL, NULL);
}
meta_verbose ("Window %s class: '%s' name: '%s'\n",
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]