Revert "DEBUG 13"
This reverts commit 3ea4291907ea00bf3cf2e73f2e3ab268a2e1c1b4.
This commit is contained in:
parent
68746123a5
commit
fdd85258ad
|
@ -370,7 +370,6 @@ compScreenInit(ScreenPtr pScreen)
|
||||||
pScreen->backingStoreSupport = WhenMapped;
|
pScreen->backingStoreSupport = WhenMapped;
|
||||||
|
|
||||||
dixScreenHookWindowDestroy(pScreen, compWindowDestroy);
|
dixScreenHookWindowDestroy(pScreen, compWindowDestroy);
|
||||||
fprintf(stderr, "compext: hooking WindowPosition\n");
|
|
||||||
dixScreenHookWindowPosition(pScreen, compWindowPosition);
|
dixScreenHookWindowPosition(pScreen, compWindowPosition);
|
||||||
|
|
||||||
cs->CopyWindow = pScreen->CopyWindow;
|
cs->CopyWindow = pScreen->CopyWindow;
|
||||||
|
|
|
@ -226,10 +226,7 @@ updateOverlayWindow(ScreenPtr pScreen)
|
||||||
|
|
||||||
void compWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWindowPositionParamRec *param)
|
void compWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWindowPositionParamRec *param)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "compWindowPosition: pScreen=%p param=%p\n", pScreen, param);
|
|
||||||
|
|
||||||
WindowPtr pWin = param->window;
|
WindowPtr pWin = param->window;
|
||||||
fprintf(stderr, " --> window=%p\n", pWin);
|
|
||||||
/*
|
/*
|
||||||
* "Shouldn't need this as all possible places should be wrapped
|
* "Shouldn't need this as all possible places should be wrapped
|
||||||
*
|
*
|
||||||
|
@ -255,7 +252,6 @@ void compWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWind
|
||||||
|
|
||||||
compCheckTree(pWin->drawable.pScreen);
|
compCheckTree(pWin->drawable.pScreen);
|
||||||
updateOverlayWindow(pScreen);
|
updateOverlayWindow(pScreen);
|
||||||
fprintf(stderr, "compWindowPosition() LEAVE\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Bool
|
Bool
|
||||||
|
|
16
dbe/midbe.c
16
dbe/midbe.c
|
@ -458,11 +458,9 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
GCPtr pGC;
|
GCPtr pGC;
|
||||||
xRectangle clearRect;
|
xRectangle clearRect;
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 001 param=%p\n", param);
|
|
||||||
WindowPtr pWin = param->window;
|
WindowPtr pWin = param->window;
|
||||||
pDbeScreenPriv = DBE_SCREEN_PRIV(pScreen);
|
pDbeScreenPriv = DBE_SCREEN_PRIV(pScreen);
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 002 pWin=%p\n", pWin);
|
|
||||||
/*
|
/*
|
||||||
**************************************************************************
|
**************************************************************************
|
||||||
** 5. Do any work necessary after the member routine has been called.
|
** 5. Do any work necessary after the member routine has been called.
|
||||||
|
@ -472,13 +470,10 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
if (!(pDbeWindowPriv = DBE_WINDOW_PRIV(pWin)))
|
if (!(pDbeWindowPriv = DBE_WINDOW_PRIV(pWin)))
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 002b pWin=%p\n", pWin);
|
|
||||||
|
|
||||||
if (pDbeWindowPriv->width == pWin->drawable.width &&
|
if (pDbeWindowPriv->width == pWin->drawable.width &&
|
||||||
pDbeWindowPriv->height == pWin->drawable.height)
|
pDbeWindowPriv->height == pWin->drawable.height)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 003\n");
|
|
||||||
width = pWin->drawable.width;
|
width = pWin->drawable.width;
|
||||||
height = pWin->drawable.height;
|
height = pWin->drawable.height;
|
||||||
|
|
||||||
|
@ -489,7 +484,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
|
|
||||||
GravityTranslate(0, 0, -dx, -dy, dw, dh, pWin->bitGravity, &destx, &desty);
|
GravityTranslate(0, 0, -dx, -dy, dw, dh, pWin->bitGravity, &destx, &desty);
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 004\n");
|
|
||||||
clear = ((pDbeWindowPriv->width < (unsigned short) width) ||
|
clear = ((pDbeWindowPriv->width < (unsigned short) width) ||
|
||||||
(pDbeWindowPriv->height < (unsigned short) height) ||
|
(pDbeWindowPriv->height < (unsigned short) height) ||
|
||||||
(pWin->bitGravity == ForgetGravity));
|
(pWin->bitGravity == ForgetGravity));
|
||||||
|
@ -506,7 +500,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
destx = 0;
|
destx = 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 005\n");
|
|
||||||
if (destx + savewidth > width) {
|
if (destx + savewidth > width) {
|
||||||
savewidth = width - destx;
|
savewidth = width - destx;
|
||||||
}
|
}
|
||||||
|
@ -521,7 +514,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
saveheight = height - desty;
|
saveheight = height - desty;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 006\n");
|
|
||||||
pDbeWindowPriv->width = width;
|
pDbeWindowPriv->width = width;
|
||||||
pDbeWindowPriv->height = height;
|
pDbeWindowPriv->height = height;
|
||||||
pDbeWindowPriv->x = pWin->drawable.x;
|
pDbeWindowPriv->x = pWin->drawable.x;
|
||||||
|
@ -529,8 +521,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
|
|
||||||
pGC = GetScratchGC(pWin->drawable.depth, pScreen);
|
pGC = GetScratchGC(pWin->drawable.depth, pScreen);
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 007\n");
|
|
||||||
|
|
||||||
if (clear) {
|
if (clear) {
|
||||||
if ((*pDbeScreenPriv->SetupBackgroundPainter) (pWin, pGC)) {
|
if ((*pDbeScreenPriv->SetupBackgroundPainter) (pWin, pGC)) {
|
||||||
clearRect.x = 0;
|
clearRect.x = 0;
|
||||||
|
@ -543,8 +533,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 008\n");
|
|
||||||
|
|
||||||
/* Create DBE buffer pixmaps equal to size of resized window. */
|
/* Create DBE buffer pixmaps equal to size of resized window. */
|
||||||
pFrontBuffer = (*pScreen->CreatePixmap) (pScreen, width, height,
|
pFrontBuffer = (*pScreen->CreatePixmap) (pScreen, width, height,
|
||||||
pWin->drawable.depth, 0);
|
pWin->drawable.depth, 0);
|
||||||
|
@ -552,7 +540,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
pBackBuffer = (*pScreen->CreatePixmap) (pScreen, width, height,
|
pBackBuffer = (*pScreen->CreatePixmap) (pScreen, width, height,
|
||||||
pWin->drawable.depth, 0);
|
pWin->drawable.depth, 0);
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition 009\n");
|
|
||||||
if (!pFrontBuffer || !pBackBuffer) {
|
if (!pFrontBuffer || !pBackBuffer) {
|
||||||
/* We failed at creating 1 or 2 of the pixmaps. */
|
/* We failed at creating 1 or 2 of the pixmaps. */
|
||||||
|
|
||||||
|
@ -619,8 +606,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
|
|
||||||
FreeScratchGC(pGC);
|
FreeScratchGC(pGC);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "miDbeWindowPosition LEAVE\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/******************************************************************************
|
/******************************************************************************
|
||||||
|
@ -636,7 +621,6 @@ void miDbeWindowPosition(CallbackListPtr *pcbl, ScreenPtr pScreen, XorgScreenWin
|
||||||
Bool
|
Bool
|
||||||
miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv)
|
miDbeInit(ScreenPtr pScreen, DbeScreenPrivPtr pDbeScreenPriv)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "midbe: hooking WindowPosition\n");
|
|
||||||
dixScreenHookWindowPosition(pScreen, miDbeWindowPosition);
|
dixScreenHookWindowPosition(pScreen, miDbeWindowPosition);
|
||||||
|
|
||||||
/* Initialize the per-screen DBE function pointers. */
|
/* Initialize the per-screen DBE function pointers. */
|
||||||
|
|
|
@ -4011,14 +4011,11 @@ AddScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
|
||||||
any of the strings pointed to by argv. They may be passed to
|
any of the strings pointed to by argv. They may be passed to
|
||||||
multiple screens.
|
multiple screens.
|
||||||
*/
|
*/
|
||||||
fprintf(stderr, "AddScreen() index=%d hook=%p\n", i, pScreen->hookWindowPosition);
|
|
||||||
|
|
||||||
screenInfo.screens[i] = pScreen;
|
screenInfo.screens[i] = pScreen;
|
||||||
screenInfo.numScreens++;
|
screenInfo.numScreens++;
|
||||||
if (!(*pfnInit) (pScreen, argc, argv)) {
|
if (!(*pfnInit) (pScreen, argc, argv)) {
|
||||||
dixFreeScreenSpecificPrivates(pScreen);
|
dixFreeScreenSpecificPrivates(pScreen);
|
||||||
dixFreePrivates(pScreen->devPrivates, PRIVATE_SCREEN);
|
dixFreePrivates(pScreen->devPrivates, PRIVATE_SCREEN);
|
||||||
fprintf(stderr, "AddScreen() abort index=%d hook=%p\n", i, pScreen->hookWindowPosition);
|
|
||||||
free(pScreen);
|
free(pScreen);
|
||||||
screenInfo.numScreens--;
|
screenInfo.numScreens--;
|
||||||
return -1;
|
return -1;
|
||||||
|
@ -4026,7 +4023,6 @@ AddScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
|
||||||
|
|
||||||
update_desktop_dimensions();
|
update_desktop_dimensions();
|
||||||
|
|
||||||
fprintf(stderr, "AddScreen() OK index=%d hook=%p\n", i, pScreen->hookWindowPosition);
|
|
||||||
return i;
|
return i;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -4045,8 +4041,6 @@ AddGPUScreen(Bool (*pfnInit) (ScreenPtr /*pScreen */ ,
|
||||||
if (i == MAXGPUSCREENS)
|
if (i == MAXGPUSCREENS)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
fprintf(stderr, "AddGPUScreen() %d\n", i);
|
|
||||||
|
|
||||||
pScreen = (ScreenPtr) calloc(1, sizeof(ScreenRec));
|
pScreen = (ScreenPtr) calloc(1, sizeof(ScreenRec));
|
||||||
if (!pScreen)
|
if (!pScreen)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
|
@ -703,7 +703,6 @@ _CallCallbacks(CallbackListPtr *pcbl, void *call_data)
|
||||||
|
|
||||||
++(cbl->inCallback);
|
++(cbl->inCallback);
|
||||||
for (cbr = cbl->list; cbr != NULL; cbr = cbr->next) {
|
for (cbr = cbl->list; cbr != NULL; cbr = cbr->next) {
|
||||||
fprintf(stderr, "CallCallbacks: cbr_data=%p call_data=%p\n", cbr->data, call_data);
|
|
||||||
(*(cbr->proc)) (pcbl, cbr->data, call_data);
|
(*(cbr->proc)) (pcbl, cbr->data, call_data);
|
||||||
}
|
}
|
||||||
--(cbl->inCallback);
|
--(cbl->inCallback);
|
||||||
|
@ -832,8 +831,6 @@ DeleteCallback(CallbackListPtr *pcbl, CallbackProcPtr callback, void *data)
|
||||||
void
|
void
|
||||||
DeleteCallbackManager(void)
|
DeleteCallbackManager(void)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "DeleteCallbackManager ENTER\n");
|
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|
||||||
for (i = 0; i < numCallbackListsToCleanup; i++) {
|
for (i = 0; i < numCallbackListsToCleanup; i++) {
|
||||||
|
@ -843,7 +840,6 @@ DeleteCallbackManager(void)
|
||||||
|
|
||||||
numCallbackListsToCleanup = 0;
|
numCallbackListsToCleanup = 0;
|
||||||
listsToCleanup = NULL;
|
listsToCleanup = NULL;
|
||||||
fprintf(stderr, "DeleteCallbackManager FIN\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
61
dix/main.c
61
dix/main.c
|
@ -151,13 +151,11 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
alwaysCheckForInput[1] = 1;
|
alwaysCheckForInput[1] = 1;
|
||||||
while (1) {
|
while (1) {
|
||||||
serverGeneration++;
|
serverGeneration++;
|
||||||
fprintf(stderr, "startup: 001 %ld\n", serverGeneration);
|
|
||||||
ScreenSaverTime = defaultScreenSaverTime;
|
ScreenSaverTime = defaultScreenSaverTime;
|
||||||
ScreenSaverInterval = defaultScreenSaverInterval;
|
ScreenSaverInterval = defaultScreenSaverInterval;
|
||||||
ScreenSaverBlanking = defaultScreenSaverBlanking;
|
ScreenSaverBlanking = defaultScreenSaverBlanking;
|
||||||
ScreenSaverAllowExposures = defaultScreenSaverAllowExposures;
|
ScreenSaverAllowExposures = defaultScreenSaverAllowExposures;
|
||||||
|
|
||||||
fprintf(stderr, "startup: 002 %ld\n", serverGeneration);
|
|
||||||
InitBlockAndWakeupHandlers();
|
InitBlockAndWakeupHandlers();
|
||||||
/* Perform any operating system dependent initializations you'd like */
|
/* Perform any operating system dependent initializations you'd like */
|
||||||
OsInit();
|
OsInit();
|
||||||
|
@ -175,26 +173,21 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
clients[0] = serverClient;
|
clients[0] = serverClient;
|
||||||
currentMaxClients = 1;
|
currentMaxClients = 1;
|
||||||
|
|
||||||
fprintf(stderr, "startup: 003 %ld\n", serverGeneration);
|
|
||||||
/* clear any existing selections */
|
/* clear any existing selections */
|
||||||
InitSelections();
|
InitSelections();
|
||||||
|
|
||||||
fprintf(stderr, "startup: 004 %ld\n", serverGeneration);
|
|
||||||
/* Initialize privates before first allocation */
|
/* Initialize privates before first allocation */
|
||||||
dixResetPrivates();
|
dixResetPrivates();
|
||||||
|
|
||||||
/* Initialize server client devPrivates, to be reallocated as
|
/* Initialize server client devPrivates, to be reallocated as
|
||||||
* more client privates are registered
|
* more client privates are registered
|
||||||
*/
|
*/
|
||||||
fprintf(stderr, "startup: 005 %ld\n", serverGeneration);
|
|
||||||
if (!dixAllocatePrivates(&serverClient->devPrivates, PRIVATE_CLIENT))
|
if (!dixAllocatePrivates(&serverClient->devPrivates, PRIVATE_CLIENT))
|
||||||
FatalError("failed to create server client privates");
|
FatalError("failed to create server client privates");
|
||||||
|
|
||||||
fprintf(stderr, "startup: 006 %ld\n", serverGeneration);
|
|
||||||
if (!InitClientResources(serverClient)) /* for root resources */
|
if (!InitClientResources(serverClient)) /* for root resources */
|
||||||
FatalError("couldn't init server resources");
|
FatalError("couldn't init server resources");
|
||||||
|
|
||||||
fprintf(stderr, "startup: 007 %ld\n", serverGeneration);
|
|
||||||
SetInputCheck(&alwaysCheckForInput[0], &alwaysCheckForInput[1]);
|
SetInputCheck(&alwaysCheckForInput[0], &alwaysCheckForInput[1]);
|
||||||
screenInfo.numScreens = 0;
|
screenInfo.numScreens = 0;
|
||||||
|
|
||||||
|
@ -203,16 +196,12 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
xfont2_init_glyph_caching();
|
xfont2_init_glyph_caching();
|
||||||
dixResetRegistry();
|
dixResetRegistry();
|
||||||
InitFonts();
|
InitFonts();
|
||||||
fprintf(stderr, "startup: 008 %ld calling InitCallbackManager\n", serverGeneration);
|
|
||||||
InitCallbackManager();
|
InitCallbackManager();
|
||||||
fprintf(stderr, "startup: 009 %ld returned from InitCallbackManager\n", serverGeneration);
|
|
||||||
InitOutput(&screenInfo, argc, argv);
|
InitOutput(&screenInfo, argc, argv);
|
||||||
|
|
||||||
fprintf(stderr, "startup: 010 %ld returned from InitOutput\n", serverGeneration);
|
|
||||||
if (screenInfo.numScreens < 1)
|
if (screenInfo.numScreens < 1)
|
||||||
FatalError("no screens found");
|
FatalError("no screens found");
|
||||||
InitExtensions(argc, argv);
|
InitExtensions(argc, argv);
|
||||||
fprintf(stderr, "startup: 011 %ld returned from InitExtensions\n", serverGeneration);
|
|
||||||
|
|
||||||
for (i = 0; i < screenInfo.numGPUScreens; i++) {
|
for (i = 0; i < screenInfo.numGPUScreens; i++) {
|
||||||
ScreenPtr pScreen = screenInfo.gpuscreens[i];
|
ScreenPtr pScreen = screenInfo.gpuscreens[i];
|
||||||
|
@ -223,8 +212,6 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
FatalError("failed to create screen resources");
|
FatalError("failed to create screen resources");
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "startup: 012 %ld processed gpuscreens\n", serverGeneration);
|
|
||||||
|
|
||||||
for (i = 0; i < screenInfo.numScreens; i++) {
|
for (i = 0; i < screenInfo.numScreens; i++) {
|
||||||
ScreenPtr pScreen = screenInfo.screens[i];
|
ScreenPtr pScreen = screenInfo.screens[i];
|
||||||
|
|
||||||
|
@ -242,7 +229,6 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
CallCallbacks(&RootWindowFinalizeCallback, pScreen);
|
CallCallbacks(&RootWindowFinalizeCallback, pScreen);
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "startup: 013 %ld processed screens\n", serverGeneration);
|
|
||||||
if (SetDefaultFontPath(defaultFontPath) != Success) {
|
if (SetDefaultFontPath(defaultFontPath) != Success) {
|
||||||
ErrorF("[dix] failed to set default font path '%s'",
|
ErrorF("[dix] failed to set default font path '%s'",
|
||||||
defaultFontPath);
|
defaultFontPath);
|
||||||
|
@ -256,42 +242,27 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
}
|
}
|
||||||
|
|
||||||
rootCursor = RefCursor(rootCursor);
|
rootCursor = RefCursor(rootCursor);
|
||||||
fprintf(stderr, "startup: 014 %ld created root cursor\n", serverGeneration);
|
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
/*
|
/*
|
||||||
* Consolidate window and colourmap information for each screen
|
* Consolidate window and colourmap information for each screen
|
||||||
*/
|
*/
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension)
|
||||||
fprintf(stderr, "startup: 014B %ld consolidate panoramix\n", serverGeneration);
|
|
||||||
PanoramiXConsolidate();
|
PanoramiXConsolidate();
|
||||||
}
|
|
||||||
#endif /* XINERAMA */
|
#endif /* XINERAMA */
|
||||||
|
|
||||||
fflush(stderr);
|
for (i = 0; i < screenInfo.numScreens; i++)
|
||||||
|
|
||||||
for (i = 0; i < screenInfo.numScreens; i++) {
|
|
||||||
fprintf(stderr, "init root window on screen %d\n", i);
|
|
||||||
InitRootWindow(screenInfo.screens[i]->root);
|
InitRootWindow(screenInfo.screens[i]->root);
|
||||||
fprintf(stderr, "finished root window on screen %d\n", i);
|
|
||||||
}
|
|
||||||
|
|
||||||
fflush(stderr);
|
|
||||||
fprintf(stderr, "startup: 015 %ld initialized root windows\n", serverGeneration);
|
|
||||||
fflush(stderr);
|
|
||||||
|
|
||||||
InitCoreDevices();
|
InitCoreDevices();
|
||||||
InitInput(argc, argv);
|
InitInput(argc, argv);
|
||||||
InitAndStartDevices();
|
InitAndStartDevices();
|
||||||
ReserveClientIds(serverClient);
|
ReserveClientIds(serverClient);
|
||||||
fprintf(stderr, "startup: 016 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
dixSaveScreens(serverClient, SCREEN_SAVER_FORCER, ScreenSaverReset);
|
dixSaveScreens(serverClient, SCREEN_SAVER_FORCER, ScreenSaverReset);
|
||||||
|
|
||||||
dixCloseRegistry();
|
dixCloseRegistry();
|
||||||
|
|
||||||
fprintf(stderr, "startup: 017 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
if (!noPanoramiXExtension) {
|
if (!noPanoramiXExtension) {
|
||||||
if (!PanoramiXCreateConnectionBlock()) {
|
if (!PanoramiXCreateConnectionBlock()) {
|
||||||
|
@ -306,33 +277,22 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "startup: 018 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
NotifyParentProcess();
|
NotifyParentProcess();
|
||||||
fprintf(stderr, "startup: 019 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
InputThreadInit();
|
InputThreadInit();
|
||||||
fprintf(stderr, "startup: 020 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
Dispatch();
|
Dispatch();
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 001 %ld\n", serverGeneration);
|
|
||||||
UnrefCursor(rootCursor);
|
UnrefCursor(rootCursor);
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 002 %ld\n", serverGeneration);
|
|
||||||
UndisplayDevices();
|
UndisplayDevices();
|
||||||
fprintf(stderr, "shutdown: 003 %ld\n", serverGeneration);
|
|
||||||
DisableAllDevices();
|
DisableAllDevices();
|
||||||
fprintf(stderr, "shutdown: 004 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
/* Now free up whatever must be freed */
|
/* Now free up whatever must be freed */
|
||||||
if (screenIsSaved == SCREEN_SAVER_ON)
|
if (screenIsSaved == SCREEN_SAVER_ON)
|
||||||
dixSaveScreens(serverClient, SCREEN_SAVER_OFF, ScreenSaverReset);
|
dixSaveScreens(serverClient, SCREEN_SAVER_OFF, ScreenSaverReset);
|
||||||
FreeScreenSaverTimer();
|
FreeScreenSaverTimer();
|
||||||
fprintf(stderr, "shutdown: 005 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
CloseDownExtensions();
|
CloseDownExtensions();
|
||||||
fprintf(stderr, "shutdown: 006 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
#ifdef XINERAMA
|
#ifdef XINERAMA
|
||||||
{
|
{
|
||||||
|
@ -345,56 +305,43 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
#else
|
#else
|
||||||
FreeAllResources();
|
FreeAllResources();
|
||||||
#endif /* XINERAMA */
|
#endif /* XINERAMA */
|
||||||
fprintf(stderr, "shutdown: 007 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
CloseInput();
|
CloseInput();
|
||||||
fprintf(stderr, "shutdown: 008 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
InputThreadFini();
|
InputThreadFini();
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 009 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
for (i = 0; i < screenInfo.numScreens; i++)
|
for (i = 0; i < screenInfo.numScreens; i++)
|
||||||
screenInfo.screens[i]->root = NullWindow;
|
screenInfo.screens[i]->root = NullWindow;
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 010 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
CloseDownDevices();
|
CloseDownDevices();
|
||||||
|
|
||||||
CloseDownEvents();
|
CloseDownEvents();
|
||||||
fprintf(stderr, "shutdown: 011 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
for (i = screenInfo.numGPUScreens - 1; i >= 0; i--) {
|
for (i = screenInfo.numGPUScreens - 1; i >= 0; i--) {
|
||||||
dixFreeScreen(screenInfo.gpuscreens[i]);
|
dixFreeScreen(screenInfo.gpuscreens[i]);
|
||||||
screenInfo.numGPUScreens = i;
|
screenInfo.numGPUScreens = i;
|
||||||
}
|
}
|
||||||
memset(&screenInfo.numGPUScreens, 0, sizeof(screenInfo.numGPUScreens));
|
memset(&screenInfo.numGPUScreens, 0, sizeof(screenInfo.numGPUScreens));
|
||||||
fprintf(stderr, "shutdown: 012 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
for (i = screenInfo.numScreens - 1; i >= 0; i--) {
|
for (i = screenInfo.numScreens - 1; i >= 0; i--) {
|
||||||
dixFreeScreen(screenInfo.screens[i]);
|
dixFreeScreen(screenInfo.screens[i]);
|
||||||
screenInfo.numScreens = i;
|
screenInfo.numScreens = i;
|
||||||
}
|
}
|
||||||
memset(&screenInfo.screens, 0, sizeof(screenInfo.numGPUScreens));
|
memset(&screenInfo.screens, 0, sizeof(screenInfo.numGPUScreens));
|
||||||
fprintf(stderr, "shutdown: 013 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
ReleaseClientIds(serverClient);
|
ReleaseClientIds(serverClient);
|
||||||
dixFreePrivates(serverClient->devPrivates, PRIVATE_CLIENT);
|
dixFreePrivates(serverClient->devPrivates, PRIVATE_CLIENT);
|
||||||
serverClient->devPrivates = NULL;
|
serverClient->devPrivates = NULL;
|
||||||
fprintf(stderr, "shutdown: 014 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
dixFreeRegistry();
|
dixFreeRegistry();
|
||||||
|
|
||||||
FreeFonts();
|
FreeFonts();
|
||||||
fprintf(stderr, "shutdown: 015 %ld\n", serverGeneration);
|
|
||||||
|
|
||||||
FreeAllAtoms();
|
FreeAllAtoms();
|
||||||
|
|
||||||
FreeAuditTimer();
|
FreeAuditTimer();
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: calling DeleteCallbackManager\n");
|
|
||||||
DeleteCallbackManager();
|
DeleteCallbackManager();
|
||||||
fprintf(stderr, "shutdown: returned from DeleteCallbackManager\n");
|
|
||||||
|
|
||||||
ClearWorkQueue();
|
ClearWorkQueue();
|
||||||
|
|
||||||
|
@ -402,19 +349,15 @@ dix_main(int argc, char *argv[], char *envp[])
|
||||||
CloseWellKnownConnections();
|
CloseWellKnownConnections();
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 001\n");
|
|
||||||
OsCleanup((dispatchException & DE_TERMINATE) != 0);
|
OsCleanup((dispatchException & DE_TERMINATE) != 0);
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 002\n");
|
|
||||||
if (dispatchException & DE_TERMINATE) {
|
if (dispatchException & DE_TERMINATE) {
|
||||||
ddxGiveUp(EXIT_NO_ERROR);
|
ddxGiveUp(EXIT_NO_ERROR);
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "shutdown: 003\n");
|
|
||||||
free(ConnectionInfo);
|
free(ConnectionInfo);
|
||||||
ConnectionInfo = NULL;
|
ConnectionInfo = NULL;
|
||||||
fprintf(stderr, "shutdown: 004\n");
|
|
||||||
}
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
|
@ -34,9 +34,7 @@ int dixScreenRaiseWindowDestroy(WindowPtr pWin)
|
||||||
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
|
|
||||||
fprintf(stderr, "calling hookWindowDestroy\n");
|
|
||||||
CallCallbacks(&pScreen->hookWindowDestroy, pWin);
|
CallCallbacks(&pScreen->hookWindowDestroy, pWin);
|
||||||
fprintf(stderr, "returned from hookWindowDestroy\n");
|
|
||||||
|
|
||||||
return (pScreen->DestroyWindow ? pScreen->DestroyWindow(pWin) : Success);
|
return (pScreen->DestroyWindow ? pScreen->DestroyWindow(pWin) : Success);
|
||||||
}
|
}
|
||||||
|
@ -46,30 +44,18 @@ void dixScreenRaiseWindowPosition(WindowPtr pWin, uint32_t x, uint32_t y)
|
||||||
if (!pWin)
|
if (!pWin)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: pWin=%p\n", pWin);
|
|
||||||
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
|
|
||||||
if (!pScreen) {
|
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: window has no screen ?!\n");
|
|
||||||
} else {
|
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: screen %p\n", pScreen);
|
|
||||||
}
|
|
||||||
|
|
||||||
XorgScreenWindowPositionParamRec param = {
|
XorgScreenWindowPositionParamRec param = {
|
||||||
.window = pWin,
|
.window = pWin,
|
||||||
.x = x,
|
.x = x,
|
||||||
.y = y,
|
.y = y,
|
||||||
};
|
};
|
||||||
|
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: param=%p .. window=%p calling it\n", ¶m, param.window);
|
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: hookWindowPosition=%p .. calling it\n", pScreen->hookWindowPosition);
|
|
||||||
CallCallbacks(&pScreen->hookWindowPosition, ¶m);
|
CallCallbacks(&pScreen->hookWindowPosition, ¶m);
|
||||||
|
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: calling PositionWindow screen proc\n");
|
|
||||||
if (pScreen->PositionWindow)
|
if (pScreen->PositionWindow)
|
||||||
pScreen->PositionWindow(pWin, x, y);
|
pScreen->PositionWindow(pWin, x, y);
|
||||||
fprintf(stderr, "dixScreenRaiseWindowPosition: FIN\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void dixScreenRaiseClose(ScreenPtr pScreen) {
|
void dixScreenRaiseClose(ScreenPtr pScreen) {
|
||||||
|
|
17
dix/window.c
17
dix/window.c
|
@ -665,38 +665,27 @@ CreateRootWindow(ScreenPtr pScreen)
|
||||||
void
|
void
|
||||||
InitRootWindow(WindowPtr pWin)
|
InitRootWindow(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
fprintf(stderr, "InitRootWindow() 001 ENTER\n");
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||||
int backFlag = CWBorderPixel | CWCursor | CWBackingStore;
|
int backFlag = CWBorderPixel | CWCursor | CWBackingStore;
|
||||||
|
|
||||||
fprintf(stderr, "InitRootWindow() 002\n");
|
|
||||||
if (!(*pScreen->CreateWindow) (pWin))
|
if (!(*pScreen->CreateWindow) (pWin))
|
||||||
return; /* XXX */
|
return; /* XXX */
|
||||||
|
|
||||||
fprintf(stderr, "InitRootWindow() 003\n");
|
|
||||||
|
|
||||||
dixScreenRaiseWindowPosition(pWin, 0, 0);
|
dixScreenRaiseWindowPosition(pWin, 0, 0);
|
||||||
|
|
||||||
fprintf(stderr, "InitRootWindow() 004\n");
|
|
||||||
|
|
||||||
pWin->cursorIsNone = FALSE;
|
pWin->cursorIsNone = FALSE;
|
||||||
pWin->optional->cursor = RefCursor(rootCursor);
|
pWin->optional->cursor = RefCursor(rootCursor);
|
||||||
|
|
||||||
fprintf(stderr, "InitRootWindow() 005\n");
|
|
||||||
|
|
||||||
if (party_like_its_1989) {
|
if (party_like_its_1989) {
|
||||||
fprintf(stderr, "InitRootWindow() 006a\n");
|
|
||||||
MakeRootTile(pWin);
|
MakeRootTile(pWin);
|
||||||
backFlag |= CWBackPixmap;
|
backFlag |= CWBackPixmap;
|
||||||
}
|
}
|
||||||
else if (pScreen->canDoBGNoneRoot && bgNoneRoot) {
|
else if (pScreen->canDoBGNoneRoot && bgNoneRoot) {
|
||||||
fprintf(stderr, "InitRootWindow() 006b\n");
|
|
||||||
pWin->backgroundState = XaceBackgroundNoneState(pWin);
|
pWin->backgroundState = XaceBackgroundNoneState(pWin);
|
||||||
pWin->background.pixel = pScreen->whitePixel;
|
pWin->background.pixel = pScreen->whitePixel;
|
||||||
backFlag |= CWBackPixmap;
|
backFlag |= CWBackPixmap;
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
fprintf(stderr, "InitRootWindow() 006c\n");
|
|
||||||
pWin->backgroundState = BackgroundPixel;
|
pWin->backgroundState = BackgroundPixel;
|
||||||
if (whiteRoot)
|
if (whiteRoot)
|
||||||
pWin->background.pixel = pScreen->whitePixel;
|
pWin->background.pixel = pScreen->whitePixel;
|
||||||
|
@ -705,17 +694,11 @@ InitRootWindow(WindowPtr pWin)
|
||||||
backFlag |= CWBackPixel;
|
backFlag |= CWBackPixel;
|
||||||
}
|
}
|
||||||
|
|
||||||
fprintf(stderr, "InitRootWindow() 007\n");
|
|
||||||
|
|
||||||
pWin->backingStore = NotUseful;
|
pWin->backingStore = NotUseful;
|
||||||
/* We SHOULD check for an error value here XXX */
|
/* We SHOULD check for an error value here XXX */
|
||||||
fprintf(stderr, "InitRootWindow() 008\n");
|
|
||||||
(*pScreen->ChangeWindowAttributes) (pWin, backFlag);
|
(*pScreen->ChangeWindowAttributes) (pWin, backFlag);
|
||||||
|
|
||||||
fprintf(stderr, "InitRootWindow() 009\n");
|
|
||||||
|
|
||||||
MapWindow(pWin, serverClient);
|
MapWindow(pWin, serverClient);
|
||||||
fprintf(stderr, "InitRootWindow() 010 FIN\n");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Set the region to the intersection of the rectangle and the
|
/* Set the region to the intersection of the rectangle and the
|
||||||
|
|
Loading…
Reference in New Issue