From cce1ef3b95a551cebe0d4234b3a05cf4ecd04d1e Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Wed, 7 Aug 2024 17:23:40 +0200 Subject: [PATCH] Xnest: replace XDefineCursor() by xcb_change_window_attributes() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Cursor.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/hw/xnest/Cursor.c b/hw/xnest/Cursor.c index 7e965ec1a..0e1dbd3ff 100644 --- a/hw/xnest/Cursor.c +++ b/hw/xnest/Cursor.c @@ -131,9 +131,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); } }