diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index aa4eb26df4..1339b2eed2 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -161,7 +161,7 @@ xnestDestroyWindow(WindowPtr pWin) xnestWindowPriv(pWin)->sibling_above; RegionDestroy(xnestWindowPriv(pWin)->bounding_shape); RegionDestroy(xnestWindowPriv(pWin)->clip_shape); - XDestroyWindow(xnestDisplay, xnestWindow(pWin)); + xcb_destroy_window(xnestUpstreamInfo.conn, xnestWindow(pWin)); xnestWindowPriv(pWin)->window = XCB_WINDOW_NONE; if (pWin->optional && pWin->optional->colormap && pWin->parent)