summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGerd Moellmann <gerd@gnu.org>2001-05-07 17:38:07 +0000
committerGerd Moellmann <gerd@gnu.org>2001-05-07 17:38:07 +0000
commit908a2b7e5d522a121ec190b306c636d38a0e98ff (patch)
treed339ccf1779c1f933552293c795a8c67f1f1f2a8
parent8087f4a0458ab67f578848582f0cea325eea3f1e (diff)
downloademacs-908a2b7e5d522a121ec190b306c636d38a0e98ff.tar.gz
(x_set_foreground_color): Set frame's cursor_pixel.
-rw-r--r--src/xfns.c6
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)
f->output_data.x->foreground_pixel);
XSetBackground (FRAME_X_DISPLAY (f), f->output_data.x->reverse_gc,
f->output_data.x->foreground_pixel);
+
XSetBackground (FRAME_X_DISPLAY (f), f->output_data.x->cursor_gc,
f->output_data.x->foreground_pixel);
+ unload_color (f, f->output_data.x->cursor_pixel);
+ f->output_data.x->cursor_pixel
+ = x_copy_color (f, f->output_data.x->foreground_pixel);
+
UNBLOCK_INPUT;
update_face_from_frame_parameter (f, Qforeground_color, arg);
if (FRAME_VISIBLE_P (f))
@@ -1387,6 +1392,7 @@ x_set_background_color (f, arg, oldval)
f->output_data.x->background_pixel);
XSetForeground (FRAME_X_DISPLAY (f), f->output_data.x->cursor_gc,
f->output_data.x->background_pixel);
+
XSetWindowBackground (FRAME_X_DISPLAY (f), FRAME_X_WINDOW (f),
f->output_data.x->background_pixel);
{