(!1705) xwin: drop wrapping on ScreenRec->MoveWindow()

Instead of complicated wrapping, just call fbMoveWindow() directly.

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-09-27 10:24:39 +02:00
parent 8beb00584e
commit f1e3e7a893
4 changed files with 3 additions and 5 deletions

View File

@ -844,6 +844,8 @@ fbPolyFillRect(DrawablePtr pDrawable,
#define fbSetShape miSetShape
#define fbMoveWindow miMoveWindow
/*
* fbfillsp.c
*/

View File

@ -504,7 +504,6 @@ typedef struct _winPrivScreenRec {
ClearToBackgroundProcPtr ClearToBackground;
ClipNotifyProcPtr ClipNotify;
ResizeWindowProcPtr ResizeWindow;
MoveWindowProcPtr MoveWindow;
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
winCursorRec cursor;

View File

@ -792,9 +792,7 @@ winMoveWindowMultiWindow(WindowPtr pWin, int x, int y,
ErrorF("MoveWindowMultiWindow to (%d, %d)\n", x, y);
#endif
WIN_UNWRAP(MoveWindow);
(*pScreen->MoveWindow) (pWin, x, y, pSib, kind);
WIN_WRAP(MoveWindow, winMoveWindowMultiWindow);
fbMoveWindow(pWin, x, y, pSib, kind);
}
/*

View File

@ -403,7 +403,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
/* Save a pointer to each lower-level window procedure */
WRAP(ResizeWindow);
WRAP(MoveWindow);
WRAP(ModifyPixmapHeader);
/* Assign multi-window window procedures to be top level procedures */