From 983a233d9c72669e83c492a1fab209adac1eb4c6 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 9211c6964..f7d2424cd 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))) {