From fdd94d7a2a918d7d04ad78e84ebe3fd726e82a52 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 f9f8baa96..0b5cf120a 100644 --- a/hw/xwin/win.h +++ b/hw/xwin/win.h @@ -504,7 +504,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 4084579fd..de83d828d 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 ec38dd596..bfca9a8c4 100644 --- a/hw/xwin/winscrinit.c +++ b/hw/xwin/winscrinit.c @@ -402,7 +402,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);