From 9a91f519c3e1c2820ffa174a0e0a723bb2c8b6c2 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Tue, 20 Aug 2024 16:13:50 +0200 Subject: [PATCH] Xnest: fetch default colormap from xcb screen info Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Screen.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 4d2698c08..87e1926b9 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -387,8 +387,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[]) valuemask = XCB_CW_BACK_PIXMAP | XCB_CW_COLORMAP; attributes.background_pixmap = xnestScreenSaverPixmap; - attributes.colormap = - DefaultColormap(xnestDisplay, xnestUpstreamInfo.screenId); + attributes.colormap = xnestUpstreamInfo.screenInfo->default_colormap; xnestScreenSaverWindows[pScreen->myNum] = XCreateWindow(xnestDisplay, xnestDefaultWindows[pScreen->myNum],