From b57a56684949c78392f5eb2f888267c2c56bc2b5 Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Fri, 9 Aug 2024 10:21:08 +0200 Subject: [PATCH] (!1654) Xnest: fetch root window depth from screen info Signed-off-by: Enrico Weigelt, metux IT consult --- hw/xnest/Display.c | 2 +- hw/xnest/Screen.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/hw/xnest/Display.c b/hw/xnest/Display.c index 4407984ee..41004d4d6 100644 --- a/hw/xnest/Display.c +++ b/hw/xnest/Display.c @@ -183,7 +183,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 diff --git a/hw/xnest/Screen.c b/hw/xnest/Screen.c index 823d2696a..432998cd4 100644 --- a/hw/xnest/Screen.c +++ b/hw/xnest/Screen.c @@ -397,7 +397,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,