Commit 60a3c9b0 authored by Ulrich Sibiller's avatar Ulrich Sibiller Committed by Mike Gabriel

nxagent: move nxagentWMPassed to Splash.c

It is only relevant there.
parent db4c220b
...@@ -144,7 +144,6 @@ void nxagentListRemoteFonts(const char *, int); ...@@ -144,7 +144,6 @@ void nxagentListRemoteFonts(const char *, int);
#ifdef NXAGENT_ONSTART #ifdef NXAGENT_ONSTART
unsigned int nxagentWMtimeout = 0; unsigned int nxagentWMtimeout = 0;
#endif #endif
Bool nxagentWMPassed = False;
/* /*
* Timeouts based on screen saver time. * Timeouts based on screen saver time.
...@@ -380,9 +379,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio ...@@ -380,9 +379,9 @@ Reply Total Cached Bits In Bits Out Bits/Reply Ratio
* that the agent is ready. * that the agent is ready.
*/ */
if (!nxagentWMPassed && (nxagentWMtimeout < currentDispatch)) if (nxagentWMtimeout < currentDispatch)
{ {
nxagentRemoveSplashWindow(); nxagentRemoveSplashWindow();
} }
nxagentClients = nClients; nxagentClients = nClients;
...@@ -590,10 +589,7 @@ ProcReparentWindow(register ClientPtr client) ...@@ -590,10 +589,7 @@ ProcReparentWindow(register ClientPtr client)
if (!pWin) if (!pWin)
return(BadWindow); return(BadWindow);
if (!nxagentWMPassed) nxagentRemoveSplashWindow();
{
nxagentRemoveSplashWindow();
}
pParent = (WindowPtr)SecurityLookupWindow(stuff->parent, client, pParent = (WindowPtr)SecurityLookupWindow(stuff->parent, client,
DixWriteAccess); DixWriteAccess);
......
...@@ -3104,10 +3104,7 @@ int nxagentShadowPoll(PixmapPtr nxagentShadowPixmapPtr, GCPtr nxagentShadowGCPtr ...@@ -3104,10 +3104,7 @@ int nxagentShadowPoll(PixmapPtr nxagentShadowPixmapPtr, GCPtr nxagentShadowGCPtr
if (result == 1) if (result == 1)
{ {
if (!nxagentWMPassed) nxagentRemoveSplashWindow();
{
nxagentRemoveSplashWindow();
}
NXShadowExportChanges(&numRects, &ptBox); NXShadowExportChanges(&numRects, &ptBox);
pBox = (BoxRec *)ptBox; pBox = (BoxRec *)ptBox;
......
...@@ -65,6 +65,7 @@ ...@@ -65,6 +65,7 @@
Pixmap nxagentPixmapLogo; Pixmap nxagentPixmapLogo;
Window nxagentSplashWindow = None; Window nxagentSplashWindow = None;
Bool nxagentWMPassed = False;
static void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height); static void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height);
...@@ -396,6 +397,9 @@ void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height) ...@@ -396,6 +397,9 @@ void nxagentPaintLogo(Window win, GC gc, int scale, int width, int height)
void nxagentRemoveSplashWindow(void) void nxagentRemoveSplashWindow(void)
{ {
if (nxagentWMPassed)
return;
if (nxagentReconnectTrap) if (nxagentReconnectTrap)
return; return;
......
...@@ -39,8 +39,6 @@ extern int nxagentXdmcpUp; ...@@ -39,8 +39,6 @@ extern int nxagentXdmcpUp;
extern Window nxagentSplashWindow; extern Window nxagentSplashWindow;
extern int nxagentWMPassed;
extern void nxagentShowSplashWindow(Window); extern void nxagentShowSplashWindow(Window);
extern void nxagentRemoveSplashWindow(); extern void nxagentRemoveSplashWindow();
......
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