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 */
|
/* Window Procedures for Rootless mode */
|
||||||
CreateWindowProcPtr CreateWindow;
|
CreateWindowProcPtr CreateWindow;
|
||||||
PositionWindowProcPtr PositionWindow;
|
|
||||||
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
||||||
RealizeWindowProcPtr RealizeWindow;
|
RealizeWindowProcPtr RealizeWindow;
|
||||||
UnrealizeWindowProcPtr UnrealizeWindow;
|
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||||
|
|
|
@ -159,12 +159,9 @@ winDestroyWindowMultiWindow(WindowPtr pWin)
|
||||||
Bool
|
Bool
|
||||||
winPositionWindowMultiWindow(WindowPtr pWin, int x, int y)
|
winPositionWindowMultiWindow(WindowPtr pWin, int x, int y)
|
||||||
{
|
{
|
||||||
Bool fResult = TRUE;
|
|
||||||
int iX, iY, iWidth, iHeight;
|
int iX, iY, iWidth, iHeight;
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
|
||||||
|
|
||||||
winWindowPriv(pWin);
|
winWindowPriv(pWin);
|
||||||
winScreenPriv(pScreen);
|
|
||||||
|
|
||||||
HWND hWnd = pWinPriv->hWnd;
|
HWND hWnd = pWinPriv->hWnd;
|
||||||
RECT rcNew;
|
RECT rcNew;
|
||||||
|
@ -181,9 +178,7 @@ winPositionWindowMultiWindow(WindowPtr pWin, int x, int y)
|
||||||
winTrace("winPositionWindowMultiWindow - pWin: %p\n", pWin);
|
winTrace("winPositionWindowMultiWindow - pWin: %p\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(PositionWindow);
|
Bool fResult = fbPositionWindow(pWin, x, y);
|
||||||
fResult = (*pScreen->PositionWindow) (pWin, x, y);
|
|
||||||
WIN_WRAP(PositionWindow, winPositionWindowMultiWindow);
|
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
#if ENABLE_DEBUG
|
||||||
ErrorF("winPositionWindowMultiWindow: (x, y) = (%d, %d)\n", x, y);
|
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(CreateWindow);
|
||||||
WRAP(RealizeWindow);
|
WRAP(RealizeWindow);
|
||||||
WRAP(UnrealizeWindow);
|
WRAP(UnrealizeWindow);
|
||||||
WRAP(PositionWindow);
|
|
||||||
WRAP(ChangeWindowAttributes);
|
WRAP(ChangeWindowAttributes);
|
||||||
WRAP(SetShape);
|
WRAP(SetShape);
|
||||||
|
|
||||||
|
@ -412,7 +411,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
WRAP(CreateWindow);
|
WRAP(CreateWindow);
|
||||||
WRAP(RealizeWindow);
|
WRAP(RealizeWindow);
|
||||||
WRAP(UnrealizeWindow);
|
WRAP(UnrealizeWindow);
|
||||||
WRAP(PositionWindow);
|
|
||||||
WRAP(ChangeWindowAttributes);
|
WRAP(ChangeWindowAttributes);
|
||||||
WRAP(ReparentWindow);
|
WRAP(ReparentWindow);
|
||||||
WRAP(RestackWindow);
|
WRAP(RestackWindow);
|
||||||
|
|
|
@ -104,18 +104,11 @@ winDestroyWindowRootless(WindowPtr pWin)
|
||||||
Bool
|
Bool
|
||||||
winPositionWindowRootless(WindowPtr pWin, int x, int y)
|
winPositionWindowRootless(WindowPtr pWin, int x, int y)
|
||||||
{
|
{
|
||||||
Bool fResult = FALSE;
|
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
|
||||||
|
|
||||||
winScreenPriv(pScreen);
|
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
#if ENABLE_DEBUG
|
||||||
winTrace("winPositionWindowRootless (%p)\n", pWin);
|
winTrace("winPositionWindowRootless (%p)\n", pWin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(PositionWindow);
|
Bool fResult = fbPositionWindow(pWin, x, y);
|
||||||
fResult = (*pScreen->PositionWindow) (pWin, x, y);
|
|
||||||
WIN_WRAP(PositionWindow, winPositionWindowRootless);
|
|
||||||
|
|
||||||
winUpdateRgnRootless(pWin);
|
winUpdateRgnRootless(pWin);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue