aboutsummaryrefslogtreecommitdiff
path: root/nx-X11
diff options
context:
space:
mode:
Diffstat (limited to 'nx-X11')
-rw-r--r--nx-X11/programs/Xserver/hw/nxagent/Screen.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/nx-X11/programs/Xserver/hw/nxagent/Screen.c b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
index c8449675a..ae64c0a18 100644
--- a/nx-X11/programs/Xserver/hw/nxagent/Screen.c
+++ b/nx-X11/programs/Xserver/hw/nxagent/Screen.c
@@ -420,8 +420,6 @@ Window nxagentCreateIconWindow(void)
{
XSetWindowAttributes attributes;
unsigned long valuemask;
- char* window_name;
- XTextProperty windowName;
XSizeHints* sizeHints;
XWMHints* wmHints;
Window w;
@@ -460,9 +458,6 @@ Window nxagentCreateIconWindow(void)
* Set hints to the window manager for the icon window.
*/
- window_name = nxagentWindowName;
- XStringListToTextProperty(&window_name, 1, &windowName);
-
if ((sizeHints = XAllocSizeHints()))
{
sizeHints->flags = PMinSize | PMaxSize;
@@ -487,6 +482,8 @@ Window nxagentCreateIconWindow(void)
}
}
+ char *window_name = nxagentWindowName;
+
Xutf8SetWMProperties(nxagentDisplay, w,
window_name, window_name,
NULL , 0 , sizeHints, wmHints, NULL);