diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/xdisp.c | 18 |
2 files changed, 10 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 361e3dd9876..2859c8217f8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -2,6 +2,10 @@ | |||
| 2 | 2 | ||
| 3 | * xdisp.c (x_consider_frame_title, tool_bar_lines_needed): Move | 3 | * xdisp.c (x_consider_frame_title, tool_bar_lines_needed): Move |
| 4 | prototypes to HAVE_WINDOW_SYSTEM-only part. | 4 | prototypes to HAVE_WINDOW_SYSTEM-only part. |
| 5 | (get_window_cursor_type): Move inside a HAVE_WINDOW_SYSTEM-only | ||
| 6 | part. Remove "#ifdef HAVE_WINDOW_SYSTEM" from body of function. | ||
| 7 | (null_glyph_slice): Move declaration into HAVE_WINDOW_SYSTEM-only | ||
| 8 | part. | ||
| 5 | 9 | ||
| 6 | * frame.h (MOUSE_HL_INFO): Fix definition to work both for | 10 | * frame.h (MOUSE_HL_INFO): Fix definition to work both for |
| 7 | TTY-only and GUI builds. | 11 | TTY-only and GUI builds. |
diff --git a/src/xdisp.c b/src/xdisp.c index 732df80a2ac..c3759da9a8f 100644 --- a/src/xdisp.c +++ b/src/xdisp.c | |||
| @@ -888,6 +888,9 @@ static int clear_face_cache_count; | |||
| 888 | #ifdef HAVE_WINDOW_SYSTEM | 888 | #ifdef HAVE_WINDOW_SYSTEM |
| 889 | #define CLEAR_IMAGE_CACHE_COUNT 101 | 889 | #define CLEAR_IMAGE_CACHE_COUNT 101 |
| 890 | static int clear_image_cache_count; | 890 | static int clear_image_cache_count; |
| 891 | |||
| 892 | /* Null glyph slice */ | ||
| 893 | static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 }; | ||
| 891 | #endif | 894 | #endif |
| 892 | 895 | ||
| 893 | /* Non-zero while redisplay_internal is in progress. */ | 896 | /* Non-zero while redisplay_internal is in progress. */ |
| @@ -913,10 +916,6 @@ EMACS_INT help_echo_pos; | |||
| 913 | 916 | ||
| 914 | Lisp_Object previous_help_echo_string; | 917 | Lisp_Object previous_help_echo_string; |
| 915 | 918 | ||
| 916 | /* Null glyph slice */ | ||
| 917 | |||
| 918 | static struct glyph_slice null_glyph_slice = { 0, 0, 0, 0 }; | ||
| 919 | |||
| 920 | /* Platform-independent portion of hourglass implementation. */ | 919 | /* Platform-independent portion of hourglass implementation. */ |
| 921 | 920 | ||
| 922 | /* Non-zero means we're allowed to display a hourglass pointer. */ | 921 | /* Non-zero means we're allowed to display a hourglass pointer. */ |
| @@ -23038,6 +23037,8 @@ set_frame_cursor_types (struct frame *f, Lisp_Object arg) | |||
| 23038 | } | 23037 | } |
| 23039 | 23038 | ||
| 23040 | 23039 | ||
| 23040 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 23041 | |||
| 23041 | /* Return the cursor we want to be displayed in window W. Return | 23042 | /* Return the cursor we want to be displayed in window W. Return |
| 23042 | width of bar/hbar cursor through WIDTH arg. Return with | 23043 | width of bar/hbar cursor through WIDTH arg. Return with |
| 23043 | ACTIVE_CURSOR arg set to 1 if cursor in window W is `active' | 23044 | ACTIVE_CURSOR arg set to 1 if cursor in window W is `active' |
| @@ -23083,10 +23084,7 @@ get_window_cursor_type (struct window *w, struct glyph *glyph, int *width, | |||
| 23083 | 23084 | ||
| 23084 | /* Detect a nonselected window or nonselected frame. */ | 23085 | /* Detect a nonselected window or nonselected frame. */ |
| 23085 | else if (w != XWINDOW (f->selected_window) | 23086 | else if (w != XWINDOW (f->selected_window) |
| 23086 | #ifdef HAVE_WINDOW_SYSTEM | 23087 | || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame) |
| 23087 | || f != FRAME_X_DISPLAY_INFO (f)->x_highlight_frame | ||
| 23088 | #endif | ||
| 23089 | ) | ||
| 23090 | { | 23088 | { |
| 23091 | *active_cursor = 0; | 23089 | *active_cursor = 0; |
| 23092 | 23090 | ||
| @@ -23127,7 +23125,6 @@ get_window_cursor_type (struct window *w, struct glyph *glyph, int *width, | |||
| 23127 | /* Use normal cursor if not blinked off. */ | 23125 | /* Use normal cursor if not blinked off. */ |
| 23128 | if (!w->cursor_off_p) | 23126 | if (!w->cursor_off_p) |
| 23129 | { | 23127 | { |
| 23130 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 23131 | if (glyph != NULL && glyph->type == IMAGE_GLYPH) | 23128 | if (glyph != NULL && glyph->type == IMAGE_GLYPH) |
| 23132 | { | 23129 | { |
| 23133 | if (cursor_type == FILLED_BOX_CURSOR) | 23130 | if (cursor_type == FILLED_BOX_CURSOR) |
| @@ -23155,7 +23152,6 @@ get_window_cursor_type (struct window *w, struct glyph *glyph, int *width, | |||
| 23155 | cursor_type = HOLLOW_BOX_CURSOR; | 23152 | cursor_type = HOLLOW_BOX_CURSOR; |
| 23156 | } | 23153 | } |
| 23157 | } | 23154 | } |
| 23158 | #endif | ||
| 23159 | return cursor_type; | 23155 | return cursor_type; |
| 23160 | } | 23156 | } |
| 23161 | 23157 | ||
| @@ -23197,8 +23193,6 @@ get_window_cursor_type (struct window *w, struct glyph *glyph, int *width, | |||
| 23197 | } | 23193 | } |
| 23198 | 23194 | ||
| 23199 | 23195 | ||
| 23200 | #ifdef HAVE_WINDOW_SYSTEM | ||
| 23201 | |||
| 23202 | /* Notice when the text cursor of window W has been completely | 23196 | /* Notice when the text cursor of window W has been completely |
| 23203 | overwritten by a drawing operation that outputs glyphs in AREA | 23197 | overwritten by a drawing operation that outputs glyphs in AREA |
| 23204 | starting at X0 and ending at X1 in the line starting at Y0 and | 23198 | starting at X0 and ending at X1 in the line starting at Y0 and |