Xnest: fetch default colormap from xcb screen info

Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
Enrico Weigelt, metux IT consult 2024-08-20 16:13:50 +02:00
parent e308ef648a
commit 9a91f519c3

View File

@ -387,8 +387,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
valuemask = XCB_CW_BACK_PIXMAP | XCB_CW_COLORMAP; valuemask = XCB_CW_BACK_PIXMAP | XCB_CW_COLORMAP;
attributes.background_pixmap = xnestScreenSaverPixmap; attributes.background_pixmap = xnestScreenSaverPixmap;
attributes.colormap = attributes.colormap = xnestUpstreamInfo.screenInfo->default_colormap;
DefaultColormap(xnestDisplay, xnestUpstreamInfo.screenId);
xnestScreenSaverWindows[pScreen->myNum] = xnestScreenSaverWindows[pScreen->myNum] =
XCreateWindow(xnestDisplay, XCreateWindow(xnestDisplay,
xnestDefaultWindows[pScreen->myNum], xnestDefaultWindows[pScreen->myNum],