18110
|
1 |
--- rdesktop-1.6.0/ewmhints.c.orig 2008-09-11 13:50:48.793730000 +0900
|
|
2 |
+++ rdesktop-1.6.0/ewmhints.c 2008-09-11 15:16:52.075814000 +0900
|
|
3 |
@@ -402,11 +402,17 @@ ewmh_move_to_desktop(Window wnd, unsigne
|
|
4 |
void
|
|
5 |
ewmh_set_wm_name(Window wnd, const char *title)
|
|
6 |
{
|
|
7 |
- int len;
|
|
8 |
+ int len, res;
|
|
9 |
+ XTextProperty property;
|
|
10 |
|
|
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 |
+ }
|
|
22 |
}
|
|
23 |
|
|
24 |
|