diff --git a/hw/xnest/Window.c b/hw/xnest/Window.c index 89d96a7bc..5dde96aaa 100644 --- a/hw/xnest/Window.c +++ b/hw/xnest/Window.c @@ -160,7 +160,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)