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 0356a26d9f
commit 6d8713b6a7
3 changed files with 3 additions and 9 deletions

View File

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

View File

@ -36,6 +36,8 @@
#include <xwin-config.h>
#endif
#include "mi/mi_priv.h"
#include "win.h"
#include "winmultiwindowclass.h"
#include "winmultiwindowicons.h"
@ -752,17 +754,11 @@ void
winMoveWindowMultiWindow(WindowPtr pWin, int x, int y,
WindowPtr pSib, VTKind kind)
{
ScreenPtr pScreen = pWin->drawable.pScreen;
winScreenPriv(pScreen);
#if ENABLE_DEBUG
ErrorF("MoveWindowMultiWindow to (%d, %d)\n", x, y);
#endif
WIN_UNWRAP(MoveWindow);
(*pScreen->MoveWindow) (pWin, x, y, pSib, kind);
WIN_WRAP(MoveWindow, winMoveWindowMultiWindow);
miMoveWindow(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 */