perl/Test-Simple: update to 1.302205
[oi-userland.git] / components / desktop / rdesktop / patches / 02-g11n-i18n-title.patch
bloba7840feb7dde129780636d1ea6635673c9de461a
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
4 void
5 ewmh_set_wm_name(Window wnd, const char *title)
7 - int len;
8 + int len, res;
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);
17 + } else {
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);
21 + }
24 void