Mercurial > emacs
diff src/xfns.c @ 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 | 834292200403 |
children | 686c788ffbb6 |
line wrap: on
line diff
--- 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;