diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/xfaces.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/xfaces.c b/src/xfaces.c index 36c3c1ab470..2b235e0c0c3 100644 --- a/src/xfaces.c +++ b/src/xfaces.c | |||
| @@ -360,9 +360,9 @@ load_color (f, name) | |||
| 360 | BLOCK_INPUT; | 360 | BLOCK_INPUT; |
| 361 | result = XAllocColor (dpy, cmap, &color); | 361 | result = XAllocColor (dpy, cmap, &color); |
| 362 | UNBLOCK_INPUT; | 362 | UNBLOCK_INPUT; |
| 363 | if (! result) | 363 | /* Ignore the return value of XallocColor, so that |
| 364 | Fsignal (Qerror, Fcons (build_string ("X server cannot allocate color"), | 364 | we use a color close to the one requested |
| 365 | Fcons (name, Qnil))); | 365 | if we can't get the exact request. */ |
| 366 | return (unsigned long) color.pixel; | 366 | return (unsigned long) color.pixel; |
| 367 | } | 367 | } |
| 368 | 368 | ||