From 8124a0dc68ac2566d839cfccbcbaefe029af7d9c Mon Sep 17 00:00:00 2001 From: "Enrico Weigelt, metux IT consult" Date: Thu, 15 Aug 2024 13:36:27 +0200 Subject: [PATCH] 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 7dd3bf780..bad5f5de8 100644 --- a/dix/window.c +++ b/dix/window.c @@ -802,12 +802,6 @@ dixCreateWindow(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))) {