aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGerd Moellmann2000-03-08 14:48:16 +0000
committerGerd Moellmann2000-03-08 14:48:16 +0000
commit08ac8554879dbb254972cc7e40e0ec62d807a533 (patch)
tree3bf2ceeda8a9b9a81c3efb3b4dd606e755dbd472
parent8256e31b785fe5a31c5973c4448b36a9a7afbe2b (diff)
downloademacs-08ac8554879dbb254972cc7e40e0ec62d807a533.tar.gz
emacs-08ac8554879dbb254972cc7e40e0ec62d807a533.zip
(x_set_cursor_type): If ARG is nil, give frame no cursor.
-rw-r--r--src/xfns.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/src/xfns.c b/src/xfns.c
index 7f88e227034..0282f651d0e 100644
--- a/src/xfns.c
+++ b/src/xfns.c
@@ -1695,12 +1695,16 @@ x_set_cursor_type (f, arg, oldval)
1695 FRAME_DESIRED_CURSOR (f) = BAR_CURSOR; 1695 FRAME_DESIRED_CURSOR (f) = BAR_CURSOR;
1696 f->output_data.x->cursor_width = 2; 1696 f->output_data.x->cursor_width = 2;
1697 } 1697 }
1698 else if (CONSP (arg) && EQ (XCAR (arg), Qbar) 1698 else if (CONSP (arg)
1699 && INTEGERP (XCDR (arg))) 1699 && EQ (XCAR (arg), Qbar)
1700 && INTEGERP (XCDR (arg))
1701 && XINT (XCDR (arg)) >= 0)
1700 { 1702 {
1701 FRAME_DESIRED_CURSOR (f) = BAR_CURSOR; 1703 FRAME_DESIRED_CURSOR (f) = BAR_CURSOR;
1702 f->output_data.x->cursor_width = XINT (XCDR (arg)); 1704 f->output_data.x->cursor_width = XINT (XCDR (arg));
1703 } 1705 }
1706 else if (NILP (arg))
1707 FRAME_DESIRED_CURSOR (f) = NO_CURSOR;
1704 else 1708 else
1705 /* Treat anything unknown as "box cursor". 1709 /* Treat anything unknown as "box cursor".
1706 It was bad to signal an error; people have trouble fixing 1710 It was bad to signal an error; people have trouble fixing