Xnest: fetch root window depth from screen info
Signed-off-by: Enrico Weigelt, metux IT consult <info@metux.net>
This commit is contained in:
parent
ba26d6bd90
commit
e308ef648a
|
@ -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
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue