xwin: drop wrapping on ScreenRec->PositionWindow()
Instead of complicated wrapping, just call fbPositionWindow directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
b0460841e8
commit
023ee2237f
|
@ -501,7 +501,6 @@ typedef struct _winPrivScreenRec {
|
|||
|
||||
/* Window Procedures for Rootless mode */
|
||||
CreateWindowProcPtr CreateWindow;
|
||||
PositionWindowProcPtr PositionWindow;
|
||||
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
||||
RealizeWindowProcPtr RealizeWindow;
|
||||
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||
|
|
|
@ -159,12 +159,9 @@ winDestroyWindowMultiWindow(WindowPtr pWin)
|
|||
Bool
|
||||
winPositionWindowMultiWindow(WindowPtr pWin, int x, int y)
|
||||
{
|
||||
Bool fResult = TRUE;
|
||||
int iX, iY, iWidth, iHeight;
|
||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||
|
||||
winWindowPriv(pWin);
|
||||
winScreenPriv(pScreen);
|
||||
|
||||
HWND hWnd = pWinPriv->hWnd;
|
||||
RECT rcNew;
|
||||
|
@ -181,9 +178,7 @@ winPositionWindowMultiWindow(WindowPtr pWin, int x, int y)
|
|||
winTrace("winPositionWindowMultiWindow - pWin: %p\n", pWin);
|
||||
#endif
|
||||
|
||||
WIN_UNWRAP(PositionWindow);
|
||||
fResult = (*pScreen->PositionWindow) (pWin, x, y);
|
||||
WIN_WRAP(PositionWindow, winPositionWindowMultiWindow);
|
||||
Bool fResult = fbPositionWindow(pWin, x, y);
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
ErrorF("winPositionWindowMultiWindow: (x, y) = (%d, %d)\n", x, y);
|
||||
|
|
|
@ -380,7 +380,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
|||
WRAP(CreateWindow);
|
||||
WRAP(RealizeWindow);
|
||||
WRAP(UnrealizeWindow);
|
||||
WRAP(PositionWindow);
|
||||
WRAP(ChangeWindowAttributes);
|
||||
WRAP(SetShape);
|
||||
|
||||
|
@ -412,7 +411,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
|||
WRAP(CreateWindow);
|
||||
WRAP(RealizeWindow);
|
||||
WRAP(UnrealizeWindow);
|
||||
WRAP(PositionWindow);
|
||||
WRAP(ChangeWindowAttributes);
|
||||
WRAP(ReparentWindow);
|
||||
WRAP(RestackWindow);
|
||||
|
|
|
@ -104,18 +104,11 @@ winDestroyWindowRootless(WindowPtr pWin)
|
|||
Bool
|
||||
winPositionWindowRootless(WindowPtr pWin, int x, int y)
|
||||
{
|
||||
Bool fResult = FALSE;
|
||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
||||
|
||||
winScreenPriv(pScreen);
|
||||
|
||||
#if ENABLE_DEBUG
|
||||
winTrace("winPositionWindowRootless (%p)\n", pWin);
|
||||
#endif
|
||||
|
||||
WIN_UNWRAP(PositionWindow);
|
||||
fResult = (*pScreen->PositionWindow) (pWin, x, y);
|
||||
WIN_WRAP(PositionWindow, winPositionWindowRootless);
|
||||
Bool fResult = fbPositionWindow(pWin, x, y);
|
||||
|
||||
winUpdateRgnRootless(pWin);
|
||||
|
||||
|
|
Loading…
Reference in New Issue