(!1654) Xnest: fetch root window depth from 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-09 10:21:08 +02:00
parent e395112ffe
commit b57a566849
2 changed files with 2 additions and 2 deletions

View File

@ -183,7 +183,7 @@ xnestOpenDisplay(int argc, char *argv[])
screensaver_height, screensaver_height,
xnestUpstreamInfo.screenInfo->white_pixel, xnestUpstreamInfo.screenInfo->white_pixel,
xnestUpstreamInfo.screenInfo->black_pixel, xnestUpstreamInfo.screenInfo->black_pixel,
DefaultDepth(xnestDisplay, xnestUpstreamInfo.screenId)); xnestUpstreamInfo.screenInfo->root_depth);
} }
void void

View File

@ -397,7 +397,7 @@ xnestOpenScreen(ScreenPtr pScreen, int argc, char *argv[])
XCreateWindow(xnestDisplay, XCreateWindow(xnestDisplay,
xnestDefaultWindows[pScreen->myNum], xnestDefaultWindows[pScreen->myNum],
0, 0, xnestWidth, xnestHeight, 0, 0, 0, xnestWidth, xnestHeight, 0,
DefaultDepth(xnestDisplay, xnestUpstreamInfo.screenId), xnestUpstreamInfo.screenInfo->root_depth,
InputOutput, DefaultVisual(xnestDisplay, InputOutput, DefaultVisual(xnestDisplay,
xnestUpstreamInfo.screenId), xnestUpstreamInfo.screenId),
valuemask, valuemask,