diff --git a/hw/xnest/Cursor.c b/hw/xnest/Cursor.c index 0cb084e4f..2e12f4761 100644 --- a/hw/xnest/Cursor.c +++ b/hw/xnest/Cursor.c @@ -134,9 +134,12 @@ xnestSetCursor(DeviceIntPtr pDev, ScreenPtr pScreen, CursorPtr pCursor, int x, int y) { if (pCursor) { - XDefineCursor(xnestDisplay, - xnestDefaultWindows[pScreen->myNum], - xnestCursor(pCursor, pScreen)); + uint32_t cursor = xnestCursor(pCursor, pScreen); + + xcb_change_window_attributes(xnestUpstreamInfo.conn, + xnestDefaultWindows[pScreen->myNum], + XCB_CW_CURSOR, + &cursor); } }