Xnest: replace XReparentWindow() by xcb_reparent_window()

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-20 15:29:23 +02:00
parent 5f5e6f110a
commit 988cc9e496

View File

@ -189,10 +189,14 @@ xnestConfigureWindow(WindowPtr pWin, unsigned int mask)
if (mask & XCB_CONFIG_WINDOW_SIBLING && if (mask & XCB_CONFIG_WINDOW_SIBLING &&
xnestWindowPriv(pWin)->parent != xnestWindowParent(pWin)) { xnestWindowPriv(pWin)->parent != xnestWindowParent(pWin)) {
XReparentWindow(xnestDisplay, xnestWindow(pWin),
xnestWindowParent(pWin), xcb_reparent_window(
pWin->origin.x - wBorderWidth(pWin), xnestUpstreamInfo.conn,
pWin->origin.y - wBorderWidth(pWin)); xnestWindow(pWin),
xnestWindowParent(pWin),
pWin->origin.x - wBorderWidth(pWin),
pWin->origin.y - wBorderWidth(pWin));
xnestWindowPriv(pWin)->parent = xnestWindowParent(pWin); xnestWindowPriv(pWin)->parent = xnestWindowParent(pWin);
xnestWindowPriv(pWin)->x = pWin->origin.x - wBorderWidth(pWin); xnestWindowPriv(pWin)->x = pWin->origin.x - wBorderWidth(pWin);
xnestWindowPriv(pWin)->y = pWin->origin.y - wBorderWidth(pWin); xnestWindowPriv(pWin)->y = pWin->origin.y - wBorderWidth(pWin);