diff options
| author | Gerd Moellmann | 2001-05-07 17:38:07 +0000 |
|---|---|---|
| committer | Gerd Moellmann | 2001-05-07 17:38:07 +0000 |
| commit | 36d42089e382f5d59cd39448a05d15b93b9de18a (patch) | |
| tree | 5e10a27b1f9a7bce4781e1afeafd3e1d7cf83cbd | |
| parent | c00394a3a30cb7f2c4f0f9a92ec93b1ccf7ab8c5 (diff) | |
| download | emacs-36d42089e382f5d59cd39448a05d15b93b9de18a.tar.gz emacs-36d42089e382f5d59cd39448a05d15b93b9de18a.zip | |
(x_set_foreground_color): Set frame's cursor_pixel.
| -rw-r--r-- | src/xfns.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/xfns.c b/src/xfns.c index f6972f9c12b..52fe0c23dff 100644 --- a/src/xfns.c +++ b/src/xfns.c | |||
| @@ -1358,8 +1358,13 @@ x_set_foreground_color (f, arg, oldval) | |||
| 1358 | f->output_data.x->foreground_pixel); | 1358 | f->output_data.x->foreground_pixel); |
| 1359 | XSetBackground (FRAME_X_DISPLAY (f), f->output_data.x->reverse_gc, | 1359 | XSetBackground (FRAME_X_DISPLAY (f), f->output_data.x->reverse_gc, |
| 1360 | f->output_data.x->foreground_pixel); | 1360 | f->output_data.x->foreground_pixel); |
| 1361 | |||
| 1361 | XSetBackground (FRAME_X_DISPLAY (f), f->output_data.x->cursor_gc, | 1362 | XSetBackground (FRAME_X_DISPLAY (f), f->output_data.x->cursor_gc, |
| 1362 | f->output_data.x->foreground_pixel); | 1363 | f->output_data.x->foreground_pixel); |
| 1364 | unload_color (f, f->output_data.x->cursor_pixel); | ||
| 1365 | f->output_data.x->cursor_pixel | ||
| 1366 | = x_copy_color (f, f->output_data.x->foreground_pixel); | ||
| 1367 | |||
| 1363 | UNBLOCK_INPUT; | 1368 | UNBLOCK_INPUT; |
| 1364 | update_face_from_frame_parameter (f, Qforeground_color, arg); | 1369 | update_face_from_frame_parameter (f, Qforeground_color, arg); |
| 1365 | if (FRAME_VISIBLE_P (f)) | 1370 | if (FRAME_VISIBLE_P (f)) |
| @@ -1387,6 +1392,7 @@ x_set_background_color (f, arg, oldval) | |||
| 1387 | f->output_data.x->background_pixel); | 1392 | f->output_data.x->background_pixel); |
| 1388 | XSetForeground (FRAME_X_DISPLAY (f), f->output_data.x->cursor_gc, | 1393 | XSetForeground (FRAME_X_DISPLAY (f), f->output_data.x->cursor_gc, |
| 1389 | f->output_data.x->background_pixel); | 1394 | f->output_data.x->background_pixel); |
| 1395 | |||
| 1390 | XSetWindowBackground (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), | 1396 | XSetWindowBackground (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f), |
| 1391 | f->output_data.x->background_pixel); | 1397 | f->output_data.x->background_pixel); |
| 1392 | { | 1398 | { |