merge latest (4.3.99.16) from XFree86 (vendor) branch
This commit is contained in:
43
dix/main.c
43
dix/main.c
@@ -1,4 +1,4 @@
|
||||
/* $XFree86: xc/programs/Xserver/dix/main.c,v 3.40 2003/02/17 16:55:31 dawes Exp $ */
|
||||
/* $XFree86: xc/programs/Xserver/dix/main.c,v 3.44 2003/11/17 22:20:34 dawes Exp $ */
|
||||
/***********************************************************
|
||||
|
||||
Copyright 1987, 1998 The Open Group
|
||||
@@ -106,15 +106,11 @@ SOFTWARE.
|
||||
#endif
|
||||
|
||||
extern int InitClientPrivates(
|
||||
#if NeedFunctionPrototypes
|
||||
ClientPtr /*client*/
|
||||
#endif
|
||||
);
|
||||
|
||||
extern void Dispatch(
|
||||
#if NeedFunctionPrototypes
|
||||
void
|
||||
#endif
|
||||
);
|
||||
|
||||
char *ConnectionInfo;
|
||||
@@ -151,11 +147,9 @@ NotImplemented(xEvent *from, xEvent *to)
|
||||
/*ARGSUSED*/
|
||||
void
|
||||
ReplyNotSwappd(
|
||||
#if NeedNestedPrototypes
|
||||
ClientPtr pClient ,
|
||||
int size ,
|
||||
void * pbuf
|
||||
#endif
|
||||
)
|
||||
{
|
||||
FatalError("Not implemented");
|
||||
@@ -319,8 +313,8 @@ main(int argc, char *argv[], char *envp[])
|
||||
}
|
||||
else
|
||||
ResetWellKnownSockets ();
|
||||
clients[0] = serverClient;
|
||||
currentMaxClients = 1;
|
||||
clients[0] = serverClient;
|
||||
currentMaxClients = 1;
|
||||
|
||||
if (!InitClientResources(serverClient)) /* for root resources */
|
||||
FatalError("couldn't init server resources");
|
||||
@@ -418,8 +412,11 @@ main(int argc, char *argv[], char *envp[])
|
||||
|
||||
for (i = 0; i < screenInfo.numScreens; i++)
|
||||
InitRootWindow(WindowTable[i]);
|
||||
DefineInitialRootWindow(WindowTable[0]);
|
||||
DefineInitialRootWindow(WindowTable[0]);
|
||||
SaveScreens(SCREEN_SAVER_FORCER, ScreenSaverReset);
|
||||
#ifdef DPMSExtension
|
||||
SetDPMSTimers();
|
||||
#endif
|
||||
|
||||
#ifdef PANORAMIX
|
||||
if (!noPanoramiXExtension) {
|
||||
@@ -437,6 +434,7 @@ main(int argc, char *argv[], char *envp[])
|
||||
/* Now free up whatever must be freed */
|
||||
if (screenIsSaved == SCREEN_SAVER_ON)
|
||||
SaveScreens(SCREEN_SAVER_OFF, ScreenSaverReset);
|
||||
FreeScreenSaverTimer();
|
||||
CloseDownExtensions();
|
||||
|
||||
#ifdef PANORAMIX
|
||||
@@ -463,11 +461,23 @@ main(int argc, char *argv[], char *envp[])
|
||||
CloseDownEvents();
|
||||
xfree(WindowTable);
|
||||
WindowTable = NULL;
|
||||
FreeFonts ();
|
||||
FreeFonts();
|
||||
|
||||
#ifdef DPMSExtension
|
||||
FreeDPMSTimers();
|
||||
#endif
|
||||
FreeAuditTimer();
|
||||
|
||||
xfree(serverClient->devPrivates);
|
||||
serverClient->devPrivates = NULL;
|
||||
|
||||
if (dispatchException & DE_TERMINATE)
|
||||
{
|
||||
CloseWellKnownConnections();
|
||||
}
|
||||
|
||||
OsCleanup((dispatchException & DE_TERMINATE) != 0);
|
||||
|
||||
if (dispatchException & DE_TERMINATE)
|
||||
{
|
||||
CloseWellKnownConnections();
|
||||
@@ -540,7 +550,7 @@ CreateConnectionBlock()
|
||||
i = padlength[setup.nbytesVendor & 3];
|
||||
sizesofar += i;
|
||||
while (--i >= 0)
|
||||
*pBuf++ = 0;
|
||||
*pBuf++ = 0;
|
||||
|
||||
for (i=0; i<screenInfo.numPixmapFormats; i++)
|
||||
{
|
||||
@@ -634,24 +644,15 @@ with its screen number, a pointer to its ScreenRec, argc, and argv.
|
||||
*/
|
||||
|
||||
int
|
||||
#if NeedFunctionPrototypes
|
||||
AddScreen(
|
||||
Bool (* pfnInit)(
|
||||
#if NeedNestedPrototypes
|
||||
int /*index*/,
|
||||
ScreenPtr /*pScreen*/,
|
||||
int /*argc*/,
|
||||
char ** /*argv*/
|
||||
#endif
|
||||
),
|
||||
int argc,
|
||||
char **argv)
|
||||
#else
|
||||
AddScreen(pfnInit, argc, argv)
|
||||
Bool (* pfnInit)();
|
||||
int argc;
|
||||
char **argv;
|
||||
#endif
|
||||
{
|
||||
|
||||
int i;
|
||||
|
||||
Reference in New Issue
Block a user