aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii1999-12-28 15:56:29 +0000
committerEli Zaretskii1999-12-28 15:56:29 +0000
commitadb9900f35b2f0b64a039af7fba2d295fc1ad6b5 (patch)
tree45239044d8807403ebaae211a3af27154f03e995 /src
parent0d43b60dfed8ebc1a6ae9598a89b24470da0b46a (diff)
downloademacs-adb9900f35b2f0b64a039af7fba2d295fc1ad6b5.tar.gz
emacs-adb9900f35b2f0b64a039af7fba2d295fc1ad6b5.zip
(struct display_info): New.
(struct x_output): Add the display_info member. (FRAME_X_DISPLAY_INFO): New macro.
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog6
-rw-r--r--src/msdos.h29
2 files changed, 35 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index dfd6792f46b..b9331c53ff4 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,3 +1,9 @@
11999-12-28 Eli Zaretskii <eliz@is.elta.co.il>
2
3 * msdos.h (struct display_info): New.
4 (struct x_output): Add the display_info member.
5 (FRAME_X_DISPLAY_INFO): New macro.
6
11999-12-28 Gerd Moellmann <gerd@gnu.org> 71999-12-28 Gerd Moellmann <gerd@gnu.org>
2 8
3 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED 9 * xdisp.c (try_window_id): Compute BEG_UNCHANGED and END_UNCHANGED
diff --git a/src/msdos.h b/src/msdos.h
index 87e88dda475..97253fc8359 100644
--- a/src/msdos.h
+++ b/src/msdos.h
@@ -55,6 +55,33 @@ typedef int XRectangle;
55#define PIX_TYPE int 55#define PIX_TYPE int
56#define XDISPLAY 56#define XDISPLAY
57 57
58/* A stripped version of struct x_display_info in xterm.h, which see. */
59struct display_info
60{
61 /* These variables describe the range of text currently shown in its
62 mouse-face, together with the window they apply to. As long as
63 the mouse stays within this range, we need not redraw anything on
64 its account. Rows and columns are glyph matrix positions in
65 MOUSE_FACE_WINDOW. */
66 int mouse_face_beg_row, mouse_face_beg_col;
67 int mouse_face_end_row, mouse_face_end_col;
68 int mouse_face_past_end;
69 Lisp_Object mouse_face_window;
70 int mouse_face_face_id;
71
72 /* 1 if a mouse motion event came and we didn't handle it right away because
73 gc was in progress. */
74 int mouse_face_deferred_gc;
75
76 /* FRAME and X, Y position of mouse when last checked for
77 highlighting. X and Y can be negative or out of range for the frame. */
78 struct frame *mouse_face_mouse_frame;
79 int mouse_face_mouse_x, mouse_face_mouse_y;
80
81 /* Nonzero means defer mouse-motion highlighting. */
82 int mouse_face_defer;
83};
84
58/* This is a cut-down version of the one in xterm.h, which see. */ 85/* This is a cut-down version of the one in xterm.h, which see. */
59struct x_output 86struct x_output
60{ 87{
@@ -66,6 +93,7 @@ struct x_output
66 XFontStruct *font; /* used in x-popup-menu (xmenu.c) */ 93 XFontStruct *font; /* used in x-popup-menu (xmenu.c) */
67 Window busy_window; /* currently unused (but maybe some day) */ 94 Window busy_window; /* currently unused (but maybe some day) */
68 unsigned busy_p : 1; /* ditto */ 95 unsigned busy_p : 1; /* ditto */
96 struct display_info display_info; /* used for drawing mouse highlight */
69}; 97};
70 98
71extern struct x_output the_only_x_display; 99extern struct x_output the_only_x_display;
@@ -74,6 +102,7 @@ extern struct x_output the_only_x_display;
74#define FRAME_FOREGROUND_PIXEL(f) (the_only_x_display.foreground_pixel) 102#define FRAME_FOREGROUND_PIXEL(f) (the_only_x_display.foreground_pixel)
75#define FRAME_BACKGROUND_PIXEL(f) (the_only_x_display.background_pixel) 103#define FRAME_BACKGROUND_PIXEL(f) (the_only_x_display.background_pixel)
76#define FRAME_FONT(f) (the_only_x_display.font) 104#define FRAME_FONT(f) (the_only_x_display.font)
105#define FRAME_X_DISPLAY_INFO(f) (&the_only_x_display.display_info)
77 106
78/* Prototypes. */ 107/* Prototypes. */
79 108