(!1705) xwin: drop wrapping on ScreenRec->SetShape()
Instead of complicated wrapping, just call fbSetShape() directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
03e2f11217
commit
903f873084
2
fb/fb.h
2
fb/fb.h
|
@ -842,6 +842,8 @@ fbPolyFillRect(DrawablePtr pDrawable,
|
||||||
|
|
||||||
#define fbFillPolygon miFillPolygon
|
#define fbFillPolygon miFillPolygon
|
||||||
|
|
||||||
|
#define fbSetShape miSetShape
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* fbfillsp.c
|
* fbfillsp.c
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -509,7 +509,6 @@ typedef struct _winPrivScreenRec {
|
||||||
ReparentWindowProcPtr ReparentWindow;
|
ReparentWindowProcPtr ReparentWindow;
|
||||||
ResizeWindowProcPtr ResizeWindow;
|
ResizeWindowProcPtr ResizeWindow;
|
||||||
MoveWindowProcPtr MoveWindow;
|
MoveWindowProcPtr MoveWindow;
|
||||||
SetShapeProcPtr SetShape;
|
|
||||||
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
ModifyPixmapHeaderProcPtr ModifyPixmapHeader;
|
||||||
|
|
||||||
winCursorRec cursor;
|
winCursorRec cursor;
|
||||||
|
|
|
@ -52,9 +52,7 @@ winSetShapeMultiWindow(WindowPtr pWin, int kind)
|
||||||
ErrorF("winSetShapeMultiWindow - pWin: %p kind: %i\n", pWin, kind);
|
ErrorF("winSetShapeMultiWindow - pWin: %p kind: %i\n", pWin, kind);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(SetShape);
|
fbSetShape(pWin, kind);
|
||||||
(*pScreen->SetShape) (pWin, kind);
|
|
||||||
WIN_WRAP(SetShape, winSetShapeMultiWindow);
|
|
||||||
|
|
||||||
/* Update the Windows window's shape */
|
/* Update the Windows window's shape */
|
||||||
winReshapeMultiWindow(pWin);
|
winReshapeMultiWindow(pWin);
|
||||||
|
|
|
@ -380,7 +380,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(RealizeWindow);
|
WRAP(RealizeWindow);
|
||||||
WRAP(UnrealizeWindow);
|
WRAP(UnrealizeWindow);
|
||||||
WRAP(SetShape);
|
|
||||||
|
|
||||||
/* Assign rootless window procedures to be top level procedures */
|
/* Assign rootless window procedures to be top level procedures */
|
||||||
pScreen->CreateWindow = winCreateWindowRootless;
|
pScreen->CreateWindow = winCreateWindowRootless;
|
||||||
|
@ -413,7 +412,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||||
WRAP(RestackWindow);
|
WRAP(RestackWindow);
|
||||||
WRAP(ResizeWindow);
|
WRAP(ResizeWindow);
|
||||||
WRAP(MoveWindow);
|
WRAP(MoveWindow);
|
||||||
WRAP(SetShape);
|
|
||||||
WRAP(ModifyPixmapHeader);
|
WRAP(ModifyPixmapHeader);
|
||||||
|
|
||||||
/* Assign multi-window window procedures to be top level procedures */
|
/* Assign multi-window window procedures to be top level procedures */
|
||||||
|
|
|
@ -216,9 +216,7 @@ winSetShapeRootless(WindowPtr pWin, int kind)
|
||||||
winTrace("winSetShapeRootless (%p, %i)\n", pWin, kind);
|
winTrace("winSetShapeRootless (%p, %i)\n", pWin, kind);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
WIN_UNWRAP(SetShape);
|
fbSetShape(pWin, kind);
|
||||||
(*pScreen->SetShape) (pWin, kind);
|
|
||||||
WIN_WRAP(SetShape, winSetShapeRootless);
|
|
||||||
|
|
||||||
winReshapeRootless(pWin);
|
winReshapeRootless(pWin);
|
||||||
winUpdateRgnRootless(pWin);
|
winUpdateRgnRootless(pWin);
|
||||||
|
|
Loading…
Reference in New Issue