Commit 6afb1d07 authored by Jim Blandy's avatar Jim Blandy
Browse files

* xfns.c (x_make_gc): Don't forget to block X input around the

	X calls in this function.

	* xfns.c [not HAVE_X11R4] (select_visual): It's v->visualid, not
	x->visualid.  x isn't defined.
parent e6b01c14
......@@ -1742,6 +1742,8 @@ x_make_gc (f)
GC temp_gc;
XImage tileimage;
/* Create the GC's of this frame.
Note that many default values are used. */
......@@ -1788,6 +1790,8 @@ x_make_gc (f)
DefaultDepth (x_current_display, XDefaultScreen (x_current_display))));
#endif /* HAVE_X11 */
......@@ -3721,7 +3725,7 @@ select_visual (screen, depth)
#ifdef HAVE_X11R4
vinfo_template.visualid = XVisualIDFromVisual (v);
vinfo_template.visualid = x->visualid;
vinfo_template.visualid = v->visualid;
vinfo = XGetVisualInfo (x_current_display, VisualIDMask, &vinfo_template,
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