Compare commits

...

1 Commits

Author SHA1 Message Date
Enrico Weigelt, metux IT consult 79e4bbe662 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 <info@metux.net>
2024-08-15 13:43:40 +02:00

View File

@ -817,12 +817,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) && if (((vmask & CWColormap) == 0) &&
(class != InputOnly) && (class != InputOnly) &&
((visual != ancwopt->visual) || (ancwopt->colormap == None))) { ((visual != ancwopt->visual) || (ancwopt->colormap == None))) {