GNU bug report logs - #5938
Unnecessary fail when XGetVisualInfo returns multiple records

Previous Next

Package: emacs;

Reported by: Lynn Winebarger <owinebar <at> gmail.com>

Date: Mon, 12 Apr 2010 16:01:02 UTC

Severity: normal

Done: Jan Djärv <jan.h.d <at> swipnet.se>

Bug is archived. No further changes may be made.

Full log


Message #10 received at 5938-done <at> debbugs.gnu.org (full text, mbox):

From: Jan Djärv <jan.h.d <at> swipnet.se>
To: Lynn Winebarger <owinebar <at> gmail.com>
Cc: 5938-done <at> debbugs.gnu.org
Subject: Re: bug#5938: Unnecessary fail when XGetVisualInfo returns multiple
	records
Date: Mon, 12 Apr 2010 21:01:10 +0200
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.