diff options
| author | Jim Blandy | 1993-03-24 01:54:20 +0000 |
|---|---|---|
| committer | Jim Blandy | 1993-03-24 01:54:20 +0000 |
| commit | 6afb1d07c238306fd75c6141ac0d565559a4ff3a (patch) | |
| tree | 9c65ed622588165e16668aeb856409ffdca26281 /src | |
| parent | e6b01c14b7ccb0a0cdf8cb80a50061464a4a1876 (diff) | |
| download | emacs-6afb1d07c238306fd75c6141ac0d565559a4ff3a.tar.gz emacs-6afb1d07c238306fd75c6141ac0d565559a4ff3a.zip | |
* 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.
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfns.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xfns.c b/src/xfns.c index 57e756c32be..796231c64dd 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1742,6 +1742,8 @@ x_make_gc (f) | |||
| 1742 | GC temp_gc; | 1742 | GC temp_gc; |
| 1743 | XImage tileimage; | 1743 | XImage tileimage; |
| 1744 | 1744 | ||
| 1745 | BLOCK_INPUT; | ||
| 1746 | |||
| 1745 | /* Create the GC's of this frame. | 1747 | /* Create the GC's of this frame. |
| 1746 | Note that many default values are used. */ | 1748 | Note that many default values are used. */ |
| 1747 | 1749 | ||
| @@ -1788,6 +1790,8 @@ x_make_gc (f) | |||
| 1788 | f->display.x->foreground_pixel, | 1790 | f->display.x->foreground_pixel, |
| 1789 | f->display.x->background_pixel, | 1791 | f->display.x->background_pixel, |
| 1790 | DefaultDepth (x_current_display, XDefaultScreen (x_current_display)))); | 1792 | DefaultDepth (x_current_display, XDefaultScreen (x_current_display)))); |
| 1793 | |||
| 1794 | UNBLOCK_INPUT; | ||
| 1791 | } | 1795 | } |
| 1792 | #endif /* HAVE_X11 */ | 1796 | #endif /* HAVE_X11 */ |
| 1793 | 1797 | ||
| @@ -3721,7 +3725,7 @@ select_visual (screen, depth) | |||
| 3721 | #ifdef HAVE_X11R4 | 3725 | #ifdef HAVE_X11R4 |
| 3722 | vinfo_template.visualid = XVisualIDFromVisual (v); | 3726 | vinfo_template.visualid = XVisualIDFromVisual (v); |
| 3723 | #else | 3727 | #else |
| 3724 | vinfo_template.visualid = x->visualid; | 3728 | vinfo_template.visualid = v->visualid; |
| 3725 | #endif | 3729 | #endif |
| 3726 | 3730 | ||
| 3727 | vinfo = XGetVisualInfo (x_current_display, VisualIDMask, &vinfo_template, | 3731 | vinfo = XGetVisualInfo (x_current_display, VisualIDMask, &vinfo_template, |