Commit 83725342 authored by Jan Djärv's avatar Jan Djärv

xfns.c (select_visual): Don't call error if XGetVisualInfo returns

more than one visual (Bug#5938).
parent 398a825b
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.
......
......@@ -4129,7 +4129,7 @@ select_visual (dpyinfo)
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;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment