1 --- a/ewmhints.c 2019-06-04 16:53:13.000000000 +0000
2 +++ b/ewmhints.c 2019-06-04 17:13:46.754374082 +0000
3 @@ -405,11 +405,17 @@ ewmh_move_to_desktop(Window wnd, unsigne
5 ewmh_set_wm_name(Window wnd, const char *title)
9 + XTextProperty property;
11 - len = strlen(title);
12 - XChangeProperty(g_display, wnd, g_net_wm_name_atom, g_utf8_string_atom,
13 - 8, PropModeReplace, (unsigned char *) title, len);
14 + res = XmbTextListToTextProperty(g_display, (char**)&title, 1, XCompoundTextStyle, &property);
15 + if (res == Success) {
16 + XSetWMName(g_display, wnd, &property);
18 + len = strlen(title);
19 + XChangeProperty(g_display, wnd, g_net_wm_name_atom, g_utf8_string_atom,
20 + 8, PropModeReplace, (unsigned char *) title, len);