aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.h
diff options
context:
space:
mode:
authorJan Djärv2009-07-03 11:07:02 +0000
committerJan Djärv2009-07-03 11:07:02 +0000
commite044e4fcd50c4db40c9efb40dd395bace59f287b (patch)
treeb5bae9d80138aba8501ad0d4cbb56cce5492dd09 /src/xterm.h
parent2e9b968b289df9e1237d21253c8057789fb33808 (diff)
downloademacs-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/xterm.h')
-rw-r--r--src/xterm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 3c738861af4..0ab19fdd8dc 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -166,6 +166,9 @@ struct x_display_info
166 /* The cursor to use for vertical scroll bars. */ 166 /* The cursor to use for vertical scroll bars. */
167 Cursor vertical_scroll_bar_cursor; 167 Cursor vertical_scroll_bar_cursor;
168 168
169 /* The invisible cursor used for pointer blanking. */
170 Cursor invisible_cursor;
171
169#ifdef USE_GTK 172#ifdef USE_GTK
170 /* The GDK cursor for scroll bars and popup menus. */ 173 /* The GDK cursor for scroll bars and popup menus. */
171 GdkCursor *xg_cursor; 174 GdkCursor *xg_cursor;
@@ -522,6 +525,7 @@ struct x_output
522 Cursor hand_cursor; 525 Cursor hand_cursor;
523 Cursor hourglass_cursor; 526 Cursor hourglass_cursor;
524 Cursor horizontal_drag_cursor; 527 Cursor horizontal_drag_cursor;
528 Cursor current_cursor;
525 529
526 /* Window whose cursor is hourglass_cursor. This window is temporarily 530 /* Window whose cursor is hourglass_cursor. This window is temporarily
527 mapped to display an hourglass cursor. */ 531 mapped to display an hourglass cursor. */