Remove dmxForceExposures. Regular expose event handling should

make sure expose events are propogated properly.
This commit is contained in:
David Reveman 2008-09-03 13:25:14 +02:00
parent e2ad97af80
commit 2c85d3f93d

View file

@ -961,30 +961,6 @@ static void dmxBECreateWindowProperties (int idx)
}
}
/* Refresh screen by generating exposure events for all windows */
static void dmxForceExposures(int idx)
{
ScreenPtr pScreen = screenInfo.screens[idx];
WindowPtr pRoot = WindowTable[idx];
Bool anyMarked = FALSE;
WindowPtr pChild;
for (pChild = pRoot->firstChild; pChild; pChild = pChild->nextSib)
anyMarked |= pScreen->MarkOverlappedWindows(pChild, pChild,
(WindowPtr *)NULL);
if (anyMarked) {
/* If any windows have been marked, set the root window's
* clipList to be broken since it will be recalculated in
* ValidateTree()
*/
REGION_BREAK(pScreen, &pRoot->clipList);
pScreen->ValidateTree(pRoot, NULL, VTBroken);
pScreen->HandleExposures(pRoot);
if (pScreen->PostValidateTree)
pScreen->PostValidateTree(pRoot, NULL, VTBroken);
}
}
/** Compare the new and old screens to see if they are compatible. */
static Bool dmxCompareScreens(DMXScreenInfo *new,
DMXScreenInfo *old,
@ -1690,9 +1666,6 @@ dmxAttachScreen (int idx,
dmxBEMapRootWindow(idx);
/* Refresh screen by generating exposure events for all windows */
dmxForceExposures(idx);
dmxSync(&dmxScreens[idx], TRUE);
/* We used these to compare the old and new screens. They are no