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