From f4dc4f7e58f331b951361d5075d33448d4cab7bb Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 15 Aug 2024 13:36:27 +0200 Subject: [PATCH] (submit/fix-1741-window-depth) dix: don't refuse creating windows with different color depths and w/o border XServer refuses the create windows with different color depth than the parent's, just in the special case that neither border pixmap nor border pixel is given, even if the screen supports it. (that's also one of the reasons why Xnest fails to run with different color depths than the default one) it really doesn't make sense to deny this, while it's allowed when having a border color or pixmap set. Fixes: ded6147b - R6.6 is the Xorg base-line Closes:https://gitlab.freedesktop.org/xorg/xserver/-/merge_requests/1644 Signed-off-by: Enrico Weigelt, metux IT consult --- dix/window.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/dix/window.c b/dix/window.c index 45988b924..ade36e201 100644 --- a/dix/window.c +++ b/dix/window.c @@ -821,12 +821,6 @@ CreateWindow(Window wid, WindowPtr pParent, int x, int y, unsigned w, } } - if (((vmask & (CWBorderPixmap | CWBorderPixel)) == 0) && - (class != InputOnly) && (depth != pParent->drawable.depth)) { - *error = BadMatch; - return NullWindow; - } - if (((vmask & CWColormap) == 0) && (class != InputOnly) && ((visual != ancwopt->visual) || (ancwopt->colormap == None))) {