Commit a6335cf3 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

Screen.c: fix handling of NX_SHADOW atom

Needs to be an XlibAtom!
parent c6a2fda0
...@@ -2566,12 +2566,6 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin) ...@@ -2566,12 +2566,6 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
XlibGC gc; XlibGC gc;
XGCValues value; XGCValues value;
#ifndef __CYGWIN32__
Atom nxagentShadowAtom;
#endif
#ifdef TEST #ifdef TEST
fprintf(stderr, "Info: Init shadow session. nxagentDisplayName [%s] " fprintf(stderr, "Info: Init shadow session. nxagentDisplayName [%s] "
"nxagentDisplay [%p] nxagentShadowDisplayName [%s].\n", "nxagentDisplay [%p] nxagentShadowDisplayName [%s].\n",
...@@ -2627,14 +2621,13 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin) ...@@ -2627,14 +2621,13 @@ int nxagentShadowInit(ScreenPtr pScreen, WindowPtr pWin)
} }
/* /*
* The shadow nxagent sets the _NX_SHADOW * The shadow nxagent sets the _NX_SHADOW property on the master X
* property on the master X server root * server root window in order to notify its presence.
* window in order to notify its presence.
*/ */
#ifndef __CYGWIN__ #ifndef __CYGWIN__
nxagentShadowAtom = XInternAtom(nxagentShadowDisplay, "_NX_SHADOW", False); XlibAtom nxagentShadowAtom = XInternAtom(nxagentShadowDisplay, "_NX_SHADOW", False);
XChangeProperty(nxagentShadowDisplay, DefaultRootWindow(nxagentShadowDisplay), XChangeProperty(nxagentShadowDisplay, DefaultRootWindow(nxagentShadowDisplay),
nxagentShadowAtom, XA_STRING, 8, PropModeReplace, NULL, 0); nxagentShadowAtom, XA_STRING, 8, PropModeReplace, NULL, 0);
......
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