On Thu, 2022-12-29 at 13:03 +1000, Peter Hutterer wrote:
On Thu, Dec 22, 2022 at 09:17:28PM +0100, Björn Persson wrote:
> Vít Ondruch wrote:
> > Dne 22. 12. 22 v 9:56 Olivier Fourdan napsal(a):
> > > When the connection fails, the Xserver returns a reason in
> > > plain text.
> > > In that case, the reason for the connection being rejected
> > > would be
> > > „Swapped clients prohibited“.
> >
> > Appreciate that there is at least some explanation, but if I saw
> > this
> > error, I would not be much smarter what is going on and how
> > should I
> > proceed ....
>
> Yes, that's a really bad error message. My reaction would be "What
> nonsense is that? I haven't swapped any clients." If it had at
> least
> said "byte-swapped" it would probably have gotten me searching in
> the
> right direction, but if the X server wants to be helpful it should
> say
> "big/little-endian mismatch; the option AllowSwappedClients is
> off".
Thanks, I've changed the error message to say `byte-swapped`, it
hasn't
been merged upstream yet after all. This particular message is
handled
in the DDX-independent bits though (shared code for Xorg, Xwayland,
etc.), the option AllowSwappedClients only exists for Xorg since the
other X server don't have an xorg.conf.
Could the error message include a URL to documentation about the config
option? That would really help discoverability.
Dave