(!1705) xwin: drop wrapping on ScreenRec->CreateWindow()
Instead of complicated wrapping, just call fbCreateWindow directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
1caa65d8bc
commit
5b0fe6cfe8
|
@ -500,7 +500,6 @@ typedef struct _winPrivScreenRec {
|
|||
winCreateScreenResourcesProc pwinCreateScreenResources;
|
||||
|
||||
/* Window Procedures for Rootless mode */
|
||||
CreateWindowProcPtr CreateWindow;
|
||||
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
||||
RealizeWindowProcPtr RealizeWindow;
|
||||
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||
|
|
|
@ -109,9 +109,7 @@ winCreateWindowMultiWindow(WindowPtr pWin)
|
|||
winTrace("winCreateWindowMultiWindow - pWin: %p\n", pWin);
|
||||
#endif
|
||||
|
||||
WIN_UNWRAP(CreateWindow);
|
||||
fResult = (*pScreen->CreateWindow) (pWin);
|
||||
WIN_WRAP(CreateWindow, winCreateWindowMultiWindow);
|
||||
fbCreateWindow(pWin);
|
||||
|
||||
/* Initialize some privates values */
|
||||
pWinPriv->hRgn = NULL;
|
||||
|
|
|
@ -377,7 +377,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
|||
}
|
||||
|
||||
/* Save a pointer to each lower-level window procedure */
|
||||
WRAP(CreateWindow);
|
||||
WRAP(RealizeWindow);
|
||||
WRAP(UnrealizeWindow);
|
||||
WRAP(ChangeWindowAttributes);
|
||||
|
@ -408,7 +407,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
|||
}
|
||||
|
||||
/* Save a pointer to each lower-level window procedure */
|
||||
WRAP(CreateWindow);
|
||||
WRAP(RealizeWindow);
|
||||
WRAP(UnrealizeWindow);
|
||||
WRAP(ChangeWindowAttributes);
|
||||
|
|
|
@ -65,9 +65,7 @@ winCreateWindowRootless(WindowPtr pWin)
|
|||
winTrace("winCreateWindowRootless (%p)\n", pWin);
|
||||
#endif
|
||||
|
||||
WIN_UNWRAP(CreateWindow);
|
||||
fResult = (*pScreen->CreateWindow) (pWin);
|
||||
WIN_WRAP(CreateWindow, winCreateWindowRootless);
|
||||
fResult = fbCreateWindow(pWin);
|
||||
|
||||
pWinPriv->hRgn = NULL;
|
||||
|
||||
|
|
Loading…
Reference in New Issue