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 ba26d6bd90
commit e308ef648a
2 changed files with 2 additions and 2 deletions

View File

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

View File

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