xwin: drop wrapping on ScreenRec->RealizeWindow()
Instead of complicated wrapping, just call fbRealizeWindow() directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
7e84650e52
commit
0dfe79f9da
|
@ -499,7 +499,6 @@ typedef struct _winPrivScreenRec {
|
||||||
winCreateScreenResourcesProc pwinCreateScreenResources;
|
winCreateScreenResourcesProc pwinCreateScreenResources;
|
||||||
|
|
||||||
/* Window Procedures for Rootless mode */
|
/* Window Procedures for Rootless mode */
|
||||||
RealizeWindowProcPtr RealizeWindow;
|
|
||||||
UnrealizeWindowProcPtr UnrealizeWindow;
|
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||||
ValidateTreeProcPtr ValidateTree;
|
ValidateTreeProcPtr ValidateTree;
|
||||||
PostValidateTreeProcPtr PostValidateTree;
|
PostValidateTreeProcPtr PostValidateTree;
|
||||||
|
|
|
@ -316,19 +316,13 @@ winUnmapWindowMultiWindow(WindowPtr pWin)
|
||||||
Bool
|
Bool
|
||||||
winMapWindowMultiWindow(WindowPtr pWin)
|
winMapWindowMultiWindow(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
Bool fResult = TRUE;
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
|
||||||
|
|
||||||
winWindowPriv(pWin);
|
winWindowPriv(pWin);
|
||||||
winScreenPriv(pScreen);
|
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
#if ENABLE_DEBUG
|
||||||
ErrorF("winMapWindowMultiWindow - pWin: %p\n", pWin);
|
ErrorF("winMapWindowMultiWindow - pWin: %p\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(RealizeWindow);
|
Bool fResult = fbRealizeWindow(pWin);
|
||||||
fResult = (*pScreen->RealizeWindow) (pWin);
|
|
||||||
WIN_WRAP(RealizeWindow, winMapWindowMultiWindow);
|
|
||||||
|
|
||||||
/* Flag that this window has not been destroyed */
|
/* Flag that this window has not been destroyed */
|
||||||
pWinPriv->fXKilled = FALSE;
|
pWinPriv->fXKilled = FALSE;
|
||||||
|
|
|
@ -378,7 +378,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save a pointer to each lower-level window procedure */
|
/* Save a pointer to each lower-level window procedure */
|
||||||
WRAP(RealizeWindow);
|
|
||||||
WRAP(UnrealizeWindow);
|
WRAP(UnrealizeWindow);
|
||||||
|
|
||||||
/* Assign rootless window procedures to be top level procedures */
|
/* Assign rootless window procedures to be top level procedures */
|
||||||
|
@ -406,7 +405,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Save a pointer to each lower-level window procedure */
|
/* Save a pointer to each lower-level window procedure */
|
||||||
WRAP(RealizeWindow);
|
|
||||||
WRAP(UnrealizeWindow);
|
WRAP(UnrealizeWindow);
|
||||||
WRAP(ReparentWindow);
|
WRAP(ReparentWindow);
|
||||||
WRAP(RestackWindow);
|
WRAP(RestackWindow);
|
||||||
|
|
|
@ -168,18 +168,11 @@ winUnmapWindowRootless(WindowPtr pWin)
|
||||||
Bool
|
Bool
|
||||||
winMapWindowRootless(WindowPtr pWin)
|
winMapWindowRootless(WindowPtr pWin)
|
||||||
{
|
{
|
||||||
Bool fResult = FALSE;
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
|
||||||
|
|
||||||
winScreenPriv(pScreen);
|
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
#if ENABLE_DEBUG
|
||||||
winTrace("winMapWindowRootless (%p)\n", pWin);
|
winTrace("winMapWindowRootless (%p)\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(RealizeWindow);
|
Bool fResult = fbRealizeWindow(pWin);
|
||||||
fResult = (*pScreen->RealizeWindow) (pWin);
|
|
||||||
WIN_WRAP(RealizeWindow, winMapWindowRootless);
|
|
||||||
|
|
||||||
winReshapeRootless(pWin);
|
winReshapeRootless(pWin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue