GNU bug report logs -
#5938
Unnecessary fail when XGetVisualInfo returns multiple records
Previous Next
Full log
Message #10 received at 5938-done <at> debbugs.gnu.org (full text, mbox):
Lynn Winebarger skrev:
> Package: emacs
> Version: 23.1.50; 23.1.1; 22.2.1
>
> When invoking emacs on a remote session using Xephyr, it responds
> emacs: Can't get proper X visual info
> In version 22 there is a newline after the message, in version 23
> there is no newline.
>
> I've traced the problem to the function select_visual in the file xfns.c. If
> the resource database does not specify a preference, it attempts to use
> the default visual by getting a screen number and visual id from the supplied
> dpyinfo structure.
>
> For some reason Xephyr returns multiple records corresponding to the
> same visual id.
> This shows up in xpdyinfo as well, output at the end of this email.
> The default id is 0x21,
> and there are two identical entries for it. Every other visual id has
> a single record.
It sounds like a bug to return two identical visuals, I haven't seen that widh
Xephyr. But in any case, Emacs should not abort. On the whole, the whole
checking of visual is kind of redundant anyway, DefaultVisualOfScreen shall
always exist.
Fix checked in.
Jan D.
This bug report was last modified 15 years and 103 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.