Unverified Commit b517b66e authored by Mike Gabriel's avatar Mike Gabriel

Merge branch 'uli42-pr/fix_wm_props' into 3.6.x

parents f9e4a54c f9c2d560
...@@ -853,8 +853,6 @@ Bool nxagentOpenScreen(ScreenPtr pScreen, ...@@ -853,8 +853,6 @@ Bool nxagentOpenScreen(ScreenPtr pScreen,
unsigned long valuemask; unsigned long valuemask;
XSetWindowAttributes attributes; XSetWindowAttributes attributes;
XWindowAttributes gattributes; XWindowAttributes gattributes;
XSizeHints* sizeHints;
XWMHints* wmHints;
Mask mask; Mask mask;
Bool resetAgentPosition = False; Bool resetAgentPosition = False;
...@@ -1870,6 +1868,9 @@ N/A ...@@ -1870,6 +1868,9 @@ N/A
XSelectInput(nxagentDisplay, nxagentFullscreenWindow, mask); XSelectInput(nxagentDisplay, nxagentFullscreenWindow, mask);
} }
XSizeHints* sizeHints;
XWMHints* wmHints;
if ((sizeHints = XAllocSizeHints())) if ((sizeHints = XAllocSizeHints()))
{ {
sizeHints->flags = PPosition | PMinSize | PMaxSize; sizeHints->flags = PPosition | PMinSize | PMaxSize;
...@@ -1898,15 +1899,6 @@ N/A ...@@ -1898,15 +1899,6 @@ N/A
sizeHints->flags |= USSize; sizeHints->flags |= USSize;
} }
Xutf8SetWMProperties(nxagentDisplay,
nxagentDefaultWindows[pScreen->myNum],
nxagentWindowName,
nxagentWindowName,
argv , argc , &sizeHints, &wmHints, NULL);
if (sizeHints)
XFree(sizeHints);
if ((wmHints = XAllocWMHints())) if ((wmHints = XAllocWMHints()))
{ {
wmHints->icon_pixmap = nxagentIconPixmap; wmHints->icon_pixmap = nxagentIconPixmap;
...@@ -1920,9 +1912,24 @@ N/A ...@@ -1920,9 +1912,24 @@ N/A
{ {
wmHints->flags = IconPixmapHint; wmHints->flags = IconPixmapHint;
} }
}
XSetWMHints(nxagentDisplay, nxagentDefaultWindows[pScreen->myNum], wmHints); Xutf8SetWMProperties(nxagentDisplay,
nxagentDefaultWindows[pScreen->myNum],
nxagentWindowName,
nxagentWindowName,
argv , argc , sizeHints, wmHints, NULL);
if (sizeHints)
{
XFree(sizeHints);
sizeHints = NULL;
}
if (wmHints)
{
XFree(wmHints); XFree(wmHints);
wmHints = NULL;
} }
/* /*
......
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