Commit 9a7c0b08 authored by Pavel Vainerman's avatar Pavel Vainerman Committed by Mike Gabriel

nxagent: Used 'Xutf8SetVMPropertis' instead of 'XSetStandardProperties' + 'Xutf8SetWMProperties'

parent 643e13bf
...@@ -867,9 +867,6 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, ...@@ -867,9 +867,6 @@ 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);
...@@ -1905,16 +1902,12 @@ N/A ...@@ -1905,16 +1902,12 @@ N/A
if (nxagentUserGeometry.flag & WidthValue || nxagentUserGeometry.flag & HeightValue) if (nxagentUserGeometry.flag & WidthValue || nxagentUserGeometry.flag & HeightValue)
sizeHints->flags |= USSize; sizeHints->flags |= USSize;
} }
/* FIXME: deprecated, replaced by XSetWmProperties() */
XSetStandardProperties(nxagentDisplay, Xutf8SetWMProperties(nxagentDisplay,
nxagentDefaultWindows[pScreen->myNum], nxagentDefaultWindows[pScreen->myNum],
nxagentWindowName, nxagentWindowName,
nxagentWindowName, nxagentWindowName,
nxagentIconPixmap, argv , argc , &sizeHints, &wmHints, NULL);
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