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:
parent
0356a26d9f
commit
6d8713b6a7
|
@ -504,7 +504,6 @@ typedef struct _winPrivScreenRec {
|
||||||
ClearToBackgroundProcPtr ClearToBackground;
|
ClearToBackgroundProcPtr ClearToBackground;
|
||||||
ClipNotifyProcPtr ClipNotify;
|
ClipNotifyProcPtr ClipNotify;
|
||||||
ResizeWindowProcPtr ResizeWindow;
|
ResizeWindowProcPtr ResizeWindow;
|
||||||
MoveWindowProcPtr MoveWindow;
|
|
||||||
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
||||||
|
|
||||||
winCursorRec cursor;
|
winCursorRec cursor;
|
||||||
|
|
|
@ -36,6 +36,8 @@
|
||||||
#include <xwin-config.h>
|
#include <xwin-config.h>
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "mi/mi_priv.h"
|
||||||
|
|
||||||
#include "win.h"
|
#include "win.h"
|
||||||
#include "winmultiwindowclass.h"
|
#include "winmultiwindowclass.h"
|
||||||
#include "winmultiwindowicons.h"
|
#include "winmultiwindowicons.h"
|
||||||
|
@ -752,17 +754,11 @@ void
|
||||||
winMoveWindowMultiWindow(WindowPtr pWin, int x, int y,
|
winMoveWindowMultiWindow(WindowPtr pWin, int x, int y,
|
||||||
WindowPtr pSib, VTKind kind)
|
WindowPtr pSib, VTKind kind)
|
||||||
{
|
{
|
||||||
ScreenPtr pScreen = pWin->drawable.pScreen;
|
|
||||||
|
|
||||||
winScreenPriv(pScreen);
|
|
||||||
|
|
||||||
#if ENABLE_DEBUG
|
#if ENABLE_DEBUG
|
||||||
ErrorF("MoveWindowMultiWindow to (%d, %d)\n", x, y);
|
ErrorF("MoveWindowMultiWindow to (%d, %d)\n", x, y);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(MoveWindow);
|
miMoveWindow(pWin, x, y, pSib, kind);
|
||||||
(*pScreen->MoveWindow) (pWin, x, y, pSib, kind);
|
|
||||||
WIN_WRAP(MoveWindow, winMoveWindowMultiWindow);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
|
|
@ -403,7 +403,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
|
|
||||||
/* Save a pointer to each lower-level window procedure */
|
/* Save a pointer to each lower-level window procedure */
|
||||||
WRAP(ResizeWindow);
|
WRAP(ResizeWindow);
|
||||||
WRAP(MoveWindow);
|
|
||||||
WRAP(ModifyPixmapHeader);
|
WRAP(ModifyPixmapHeader);
|
||||||
|
|
||||||
/* Assign multi-window window procedures to be top level procedures */
|
/* Assign multi-window window procedures to be top level procedures */
|
||||||
|
|
Loading…
Reference in New Issue