Mercurial > emacs
changeset 107839:117dfaee55b8
xfns.c (select_visual): Don't call error if XGetVisualInfo returns
more than one visual (Bug#5938).
author | Jan D. <jan.h.d@swipnet.se> |
---|---|
date | Mon, 12 Apr 2010 20:58:15 +0200 |
parents | f50f5478ec53 |
children | e84bec592536 |
files | src/ChangeLog src/xfns.c |
diffstat | 2 files changed, 6 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/src/ChangeLog Mon Apr 12 12:09:47 2010 -0400 +++ b/src/ChangeLog Mon Apr 12 20:58:15 2010 +0200 @@ -1,3 +1,8 @@ +2010-04-12 Jan Djärv <jan.h.d@swipnet.se> + + * xfns.c (select_visual): Don't call error if XGetVisualInfo returns + more than one visual (Bug#5938). + 2010-04-12 Dan Nicolaescu <dann@ics.uci.edu> * Makefile.in (C_SWITCH_SYSTEM,C_SWITCH_MACHINE,C_SWITCH_X_SITE): Undefine.
--- a/src/xfns.c Mon Apr 12 12:09:47 2010 -0400 +++ b/src/xfns.c Mon Apr 12 20:58:15 2010 +0200 @@ -4129,7 +4129,7 @@ vinfo_template.screen = XScreenNumberOfScreen (screen); vinfo = XGetVisualInfo (dpy, VisualIDMask | VisualScreenMask, &vinfo_template, &n_visuals); - if (n_visuals != 1) + if (n_visuals <= 0) fatal ("Can't get proper X visual info"); dpyinfo->n_planes = vinfo->depth;