diff options
| author | Jan Djärv | 2009-07-03 11:07:02 +0000 |
|---|---|---|
| committer | Jan Djärv | 2009-07-03 11:07:02 +0000 |
| commit | e044e4fcd50c4db40c9efb40dd395bace59f287b (patch) | |
| tree | b5bae9d80138aba8501ad0d4cbb56cce5492dd09 /src/keyboard.c | |
| parent | 2e9b968b289df9e1237d21253c8057789fb33808 (diff) | |
| download | emacs-e044e4fcd50c4db40c9efb40dd395bace59f287b.tar.gz emacs-e044e4fcd50c4db40c9efb40dd395bace59f287b.zip | |
* xterm.h (struct x_display_info): Add invisible_cursor.
(struct x_output): Add current_cursor.
* xterm.c (XTtoggle_invisible_pointer): New function.
(x_define_frame_cursor): Don't define cursor if invisible or the
same as before. Set current_cursor.
(x_create_terminal): Set toggle_invisible_pointer_hook.
* xfns.c (make_invisible_cursor): New function.
(x_set_mouse_color): Call make_invisible_cursor.
Set current_cursor.
(x_window): Set current_cursor.
* termhooks.h (struct terminal): Add toggle_invisible_pointer_hook.
* keyboard.c (command_loop_1): Call frame_make_pointer_invisible after
inserting a character.
(read_avail_input): Call frame_make_pointer_visible.
* frame.c (Vmake_pointer_invisible): New variable.
(frame_make_pointer_invisible, frame_make_pointer_visible): New
functions.
(syms_of_frame): DEFVAR make-pointer-invisible, initialize to Qt.
* frame.h: Declare frame_make_pointer_invisible and
frame_make_pointer_visible.
(struct frame): Add pointer_invisible.
* cus-start.el (all): Added make-pointer-invisible.
Diffstat (limited to 'src/keyboard.c')
| -rw-r--r-- | src/keyboard.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/keyboard.c b/src/keyboard.c index 55862e1da33..b8714a393ec 100644 --- a/src/keyboard.c +++ b/src/keyboard.c | |||
| @@ -1867,6 +1867,8 @@ command_loop_1 () | |||
| 1867 | if (value == 2) | 1867 | if (value == 2) |
| 1868 | nonundocount = 0; | 1868 | nonundocount = 0; |
| 1869 | 1869 | ||
| 1870 | frame_make_pointer_invisible (); | ||
| 1871 | |||
| 1870 | if (! NILP (Vpost_command_hook)) | 1872 | if (! NILP (Vpost_command_hook)) |
| 1871 | /* Put this before calling adjust_point_for_property | 1873 | /* Put this before calling adjust_point_for_property |
| 1872 | so it will only get called once in any case. */ | 1874 | so it will only get called once in any case. */ |
| @@ -7134,6 +7136,8 @@ read_avail_input (expected) | |||
| 7134 | if (err && !nread) | 7136 | if (err && !nread) |
| 7135 | nread = -1; | 7137 | nread = -1; |
| 7136 | 7138 | ||
| 7139 | frame_make_pointer_visible (); | ||
| 7140 | |||
| 7137 | return nread; | 7141 | return nread; |
| 7138 | } | 7142 | } |
| 7139 | 7143 | ||