From b6a40db227eab3c42777e6305de6ed6d6c6ac6d7 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Mon, 5 Aug 2024 17:38:44 +0200 Subject: [PATCH] (!1654) Xnest: replace XSetWindowColormap() by xcb_change_window_attributes() Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Color.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/hw/xnest/Color.c b/hw/xnest/Color.c index 4b195c560..421bec9b4 100644 --- a/hw/xnest/Color.c +++ b/hw/xnest/Color.c @@ -253,9 +253,11 @@ xnestSetInstalledColormapWindows(ScreenPtr pScreen) pScreen->defColormap, X11_RESTYPE_COLORMAP, serverClient, DixUseAccess); - XSetWindowColormap(xnestDisplay, - xnestDefaultWindows[pScreen->myNum], - xnestColormap(pCmap)); + uint32_t cmap = xnestColormap(pCmap); + xcb_change_window_attributes(xnestUpstreamInfo.conn, + xnestDefaultWindows[pScreen->myNum], + XCB_CW_COLORMAP, + &cmap); } #endif /* DUMB_WINDOW_MANAGERS */ }