mirror of
https://github.com/X11Libre/xserver.git
synced 2026-03-24 21:41:25 +00:00
(!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:
@@ -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
|
||||
|
||||
@@ -394,7 +394,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,
|
||||
|
||||
Reference in New Issue
Block a user