From 9af0a3ec51c2e13878821404137eaf41149eaeb5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 26 Sep 2024 18:06:47 +0200 Subject: [PATCH] (!1705) xwin: drop wrapping on ScreenRec->ChangeWindowAttributes() Instead of complicated wrapping, just call fbCreateWindow directly. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xwin/win.h | 1 - hw/xwin/winmultiwindowwindow.c | 4 +--- hw/xwin/winscrinit.c | 2 -- hw/xwin/winwindow.c | 4 +--- 4 files changed, 2 insertions(+), 9 deletions(-) diff --git a/hw/xwin/win.h b/hw/xwin/win.h index d884e790f..9b2d171be 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -500,7 +500,6 @@ typedef struct _winPrivScreenRec { winCreateScreenResourcesProc pwinCreateScreenResources; /* Window Procedures for Rootless mode */ - ChangeWindowAttributesProcPtr ChangeWindowAttributes; RealizeWindowProcPtr RealizeWindow; UnrealizeWindowProcPtr UnrealizeWindow; ValidateTreeProcPtr ValidateTree; diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index 80dbaea03..f0cbacf59 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -287,9 +287,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. diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index a4e62a6f4..f0af427e8 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -379,7 +379,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 */ @@ -409,7 +408,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); diff --git a/hw/xwin/winwindow.c b/hw/xwin/winwindow.c index 72e6080cc..a9669f6c0 100644 --- a/hw/xwin/winwindow.c +++ b/hw/xwin/winwindow.c @@ -140,9 +140,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);