Commit 643e13bf authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Mike Gabriel

fix window title encoding (use utf8) for nxagent

parent 489c1731
...@@ -441,8 +441,8 @@ Window nxagentCreateIconWindow(void) ...@@ -441,8 +441,8 @@ Window nxagentCreateIconWindow(void)
} }
} }
XSetWMProperties(nxagentDisplay, w, Xutf8SetWMProperties(nxagentDisplay, w,
&windowName, &windowName, window_name, window_name,
NULL , 0 , sizeHints, wmHints, NULL); NULL , 0 , sizeHints, wmHints, NULL);
if (sizeHints) if (sizeHints)
...@@ -867,6 +867,9 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, ...@@ -867,6 +867,9 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
int defaultVisualIndex = 0; int defaultVisualIndex = 0;
XTextProperty xtpWmName;
char* wmName = nxagentWindowName;
#ifdef TEST #ifdef TEST
fprintf(stderr, "nxagentOpenScreen: Called for screen index [%d].\n", fprintf(stderr, "nxagentOpenScreen: Called for screen index [%d].\n",
pScreen->myNum); pScreen->myNum);
...@@ -1910,6 +1913,9 @@ N/A ...@@ -1910,6 +1913,9 @@ N/A
nxagentIconPixmap, nxagentIconPixmap,
argv, argc, sizeHints); argv, argc, sizeHints);
if (Xutf8TextListToTextProperty(nxagentDisplay, &wmName, 1, XCompoundTextStyle, &xtpWmName) >= Success)
XSetWMName(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum], &xtpWmName);
if (sizeHints) if (sizeHints)
XFree(sizeHints); XFree(sizeHints);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment