(!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:
		
							parent
							
								
									c10da6f93a
								
							
						
					
					
						commit
						8490dd628d
					
				|  | @ -181,7 +181,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 | ||||||
|  |  | ||||||
|  | @ -393,7 +393,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, | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue