From 6fac1f97508196df8a462efcb2185e43703ab4f1 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 27 Sep 2024 10:08:24 +0200 Subject: [PATCH] (!1705) xwin: drop wrapping on ScreenRec->ReparentWindow() This proc vector is optional (callers check for non-null) and neither fb nor mi set it, so we can just assign our function directly. No need for wrapping. Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xwin/win.h | 1 - hw/xwin/winmultiwindowwindow.c | 5 ----- hw/xwin/winscrinit.c | 1 - 3 files changed, 7 deletions(-) diff --git a/hw/xwin/win.h b/hw/xwin/win.h index 5d508894e1..6f690174bc 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -505,7 +505,6 @@ typedef struct _winPrivScreenRec { ClearToBackgroundProcPtr ClearToBackground; ClipNotifyProcPtr ClipNotify; RestackWindowProcPtr RestackWindow; - ReparentWindowProcPtr ReparentWindow; ResizeWindowProcPtr ResizeWindow; MoveWindowProcPtr MoveWindow; ModifyPixmapHeaderProcPtr ModifyPixmapHeader; diff --git a/hw/xwin/winmultiwindowwindow.c b/hw/xwin/winmultiwindowwindow.c index 4084579fdb..de83d828d0 100644 --- a/hw/xwin/winmultiwindowwindow.c +++ b/hw/xwin/winmultiwindowwindow.c @@ -373,11 +373,6 @@ winReparentWindowMultiWindow(WindowPtr pWin, WindowPtr pPriorParent) pPriorParent, (unsigned int)pPriorParent->drawable.id, pWin->parent, (unsigned int)pWin->parent->drawable.id); - WIN_UNWRAP(ReparentWindow); - if (pScreen->ReparentWindow) - (*pScreen->ReparentWindow) (pWin, pPriorParent); - WIN_WRAP(ReparentWindow, winReparentWindowMultiWindow); - /* Update the Windows window associated with this X window */ winUpdateWindowsWindow(pWin); } diff --git a/hw/xwin/winscrinit.c b/hw/xwin/winscrinit.c index 856ffd5f8d..67281ac726 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -406,7 +406,6 @@ winFinishScreenInitFB(int i, ScreenPtr pScreen, int argc, char **argv) } /* Save a pointer to each lower-level window procedure */ - WRAP(ReparentWindow); WRAP(RestackWindow); WRAP(ResizeWindow); WRAP(MoveWindow);