summaryrefslogtreecommitdiff
path: root/src/xterm.h
diff options
context:
space:
mode:
authorDmitry Antipov <dmantipov@yandex.ru>2014-05-13 18:18:54 +0400
committerDmitry Antipov <dmantipov@yandex.ru>2014-05-13 18:18:54 +0400
commitd3e5c0ea8f4c5902a11b6bc36170336a7a7f01b6 (patch)
tree62a09fcdabf646d80f7bae5bfbcd802e14c6182b /src/xterm.h
parentbd098f41af3d0201d6b8156ecb577dbff53fa50c (diff)
downloademacs-d3e5c0ea8f4c5902a11b6bc36170336a7a7f01b6.tar.gz
If available, use Xfixes extension to do pointer blanking.
* configure.ac (HAVE_XFIXES): Define if available. (XFIXES_CFLAGS, XFIXES_LIBS): New AC_SUBSTs. * src/Makefile.in (XFIXES_CFLAGS, XFIXES_LIBS): New var. * src/xfns.c (x_set_mouse_color): Do not call make_invisible_cursor here. (make_invisible_cursor): Move to... * src/xterm.c (make_invisible_cursor): ...here. (x_probe_xfixes_extension, xfixes_toggle_visible_pointer) (x_toggle_visible_pointer, x_setup_pointer_blanking): New functions. (x_term_init): Call to x_setup_pointer_blanking. (XTtoggle_invisible_pointer): Use blanking specific to this display. * src/xterm.h (struct x_display_info): New member toggle_visible_pointer.
Diffstat (limited to 'src/xterm.h')
-rw-r--r--src/xterm.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/xterm.h b/src/xterm.h
index 90d2e131717..3e79de10976 100644
--- a/src/xterm.h
+++ b/src/xterm.h
@@ -174,9 +174,13 @@ struct x_display_info
/* The cursor to use for vertical scroll bars. */
Cursor vertical_scroll_bar_cursor;
- /* The invisible cursor used for pointer blanking. */
+ /* The invisible cursor used for pointer blanking.
+ Unused if this display supports Xfixes extension. */
Cursor invisible_cursor;
+ /* Function used to toggle pointer visibility on this display. */
+ void (*toggle_visible_pointer) (struct frame *, bool);
+
#ifdef USE_GTK
/* The GDK cursor for scroll bars and popup menus. */
GdkCursor *xg_cursor;