changeset 64422:d3239f455aaa

(x_set_cursor_color): Use XSetBackground and XSetForeground.
author YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
date Mon, 18 Jul 2005 05:38:38 +0000
parents 07aa938ec759
children 94a250aa72e0
files src/macfns.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/src/macfns.c	Sun Jul 17 22:27:29 2005 +0000
+++ b/src/macfns.c	Mon Jul 18 05:38:38 2005 +0000
@@ -1570,9 +1570,10 @@
     {
       BLOCK_INPUT;
       /* Update frame's cursor_gc.  */
-      f->output_data.mac->cursor_gc->foreground = fore_pixel;
-      f->output_data.mac->cursor_gc->background = pixel;
-
+      XSetBackground (FRAME_MAC_DISPLAY (f),
+		      f->output_data.mac->cursor_gc, pixel);
+      XSetForeground (FRAME_MAC_DISPLAY (f),
+		      f->output_data.mac->cursor_gc, fore_pixel);
       UNBLOCK_INPUT;
 
       if (FRAME_VISIBLE_P (f))