mirror of
https://github.com/X11Libre/xserver.git
synced 2026-04-07 19:21:41 +00:00
(!1705) xwin: drop wrapping on ScreenRec->ChangeWindowAttributes()
Instead of complicated wrapping, just call fbCreateWindow directly. Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
@@ -501,7 +501,6 @@ typedef struct _winPrivScreenRec {
|
||||
winCreateScreenResourcesProc pwinCreateScreenResources;
|
||||
|
||||
/* Window Procedures for Rootless mode */
|
||||
ChangeWindowAttributesProcPtr ChangeWindowAttributes;
|
||||
RealizeWindowProcPtr RealizeWindow;
|
||||
UnrealizeWindowProcPtr UnrealizeWindow;
|
||||
ValidateTreeProcPtr ValidateTree;
|
||||
|
||||
@@ -285,9 +285,7 @@ winChangeWindowAttributesMultiWindow(WindowPtr pWin, unsigned long mask)
|
||||
ErrorF("winChangeWindowAttributesMultiWindow - pWin: %p\n", pWin);
|
||||
#endif
|
||||
|
||||
WIN_UNWRAP(ChangeWindowAttributes);
|
||||
fResult = (*pScreen->ChangeWindowAttributes) (pWin, mask);
|
||||
WIN_WRAP(ChangeWindowAttributes, winChangeWindowAttributesMultiWindow);
|
||||
fbChangeWindowAttributes(pWin, mask);
|
||||
|
||||
/*
|
||||
* NOTE: We do not currently need to do anything here.
|
||||
|
||||
@@ -383,7 +383,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||
/* Save a pointer to each lower-level window procedure */
|
||||
WRAP(RealizeWindow);
|
||||
WRAP(UnrealizeWindow);
|
||||
WRAP(ChangeWindowAttributes);
|
||||
WRAP(SetShape);
|
||||
|
||||
/* Assign rootless window procedures to be top level procedures */
|
||||
@@ -413,7 +412,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv)
|
||||
/* Save a pointer to each lower-level window procedure */
|
||||
WRAP(RealizeWindow);
|
||||
WRAP(UnrealizeWindow);
|
||||
WRAP(ChangeWindowAttributes);
|
||||
WRAP(ReparentWindow);
|
||||
WRAP(RestackWindow);
|
||||
WRAP(ResizeWindow);
|
||||
|
||||
@@ -137,9 +137,7 @@ winChangeWindowAttributesRootless(WindowPtr pWin, unsigned long mask)
|
||||
winTrace("winChangeWindowAttributesRootless (%p)\n", pWin);
|
||||
#endif
|
||||
|
||||
WIN_UNWRAP(ChangeWindowAttributes);
|
||||
fResult = (*pScreen->ChangeWindowAttributes) (pWin, mask);
|
||||
WIN_WRAP(ChangeWindowAttributes, winChangeWindowAttributesRootless);
|
||||
fbChangeWindowAttributes(pWin, mask);
|
||||
|
||||
winUpdateRgnRootless(pWin);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user