Commit graph

687 commits

Author SHA1 Message Date
Andreas Schwab
91c153e21f (note_mouse_highlight): Fix type of variable `ignore'. 2001-11-17 21:41:54 +00:00
Jason Rumney
9f0de4e301 (notice_overwritten_cursor): Take care of end < 0 case. 2001-11-17 18:09:27 +00:00
Pavel Janík
b81b3da346 (waiting_for_input): Remove unnecessary prototype. 2001-11-16 22:52:13 +00:00
Kim F. Storm
3f332ef33d Fringe cleanup.
Comment fixes. Use renamed symbols.
(fringe_bitmap_type): Renamed from bitmap_type.
(NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
(x_draw_fringe_bitmap): Renamed from x_draw_bitmap.
(x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2001-11-16 13:20:18 +00:00
Gerd Moellmann
a10b6ff1a9 (x_draw_image_relief): Accept zero tool_bar_button_relief. 2001-11-15 16:13:47 +00:00
Gerd Moellmann
34e5d0af4e (x_draw_bar_cursor): If the background color of the
glyph under the cursor equals the frame's cursor color, use
the glyph's foreground color for drawing the bar cursor.
2001-11-15 11:02:23 +00:00
Richard M. Stallman
140d664344 Undo unintended change in #if 0 code. 2001-11-12 22:55:02 +00:00
Richard M. Stallman
2c850e26ce (XTread_socket): Don't update focus for EnterNotify or
LeaveNotify events.  Only FocusIn and FocusOut do that now.
(x_display_and_set_cursor): Do display hollow cursors in active
minibuffer windows when they are not selected.
2001-11-12 05:35:02 +00:00
Richard M. Stallman
34368a22c5 (x_display_and_set_cursor): Use buffer-local
value of `cursor-in-non-selected-windows'.
2001-11-05 00:14:31 +00:00
Gerd Moellmann
7b49b9d282 (x_scroll_bar_create): Check for width and height > 0.
(XTset_vertical_scroll_bar): Likewise.
2001-11-01 11:25:01 +00:00
Gerd Moellmann
259cf6bcbb (x_after_update_window_line): Don't run the code
clearing in borders for rows whose visible height is 0.
2001-10-30 17:28:03 +00:00
Gerd Moellmann
327f42ee80 (x_draw_relief_rect): Correct bottom relief by 1 pixel.
(x_set_glyph_string_background_width): Set
extends_to_end_of_line_p if the row's fill_line_p is set and
drawing the last glyph with DRAW_IMAGE_{RAISED,SUNKEN}.
2001-10-30 15:00:38 +00:00
Gerd Moellmann
9a7bdceb5d (x_display_and_set_cursor): If cursor_in_echo_area,
use NO_CURSOR if cursor_in_non_selected_windows is false.
2001-10-29 14:00:39 +00:00
Gerd Moellmann
ef253080e3 (x_after_update_window_line): Clear internal border
in different circumstances.
2001-10-29 11:16:20 +00:00
Gerd Moellmann
fee2aedc37 (XTread_socket) <KeyPress>: Don't use
STRING_CHAR_AND_LENGTH if nchars == nbytes.  From Kenichi Handa
<handa@etl.go.jp>.
2001-10-29 09:44:31 +00:00
Pavel Janík
bb4600a4b0 Fix typo in a comment. 2001-10-27 21:43:23 +00:00
Pavel Janík
a7248e4f4c Fix typo in a comment. 2001-10-27 09:25:12 +00:00
Gerd Moellmann
38d2af0c9e (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix clearning in the case of scroll bars on the right.
2001-10-26 11:59:32 +00:00
Gerd Moellmann
b2bbd50940 (show_mouse_face): Clean up. Recognize overwritten
cursor differently.
2001-10-25 12:58:15 +00:00
Miles Bader
e2a57b3428 (x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
`IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background color
to use for image glyph reliefs.
2001-10-24 18:05:05 +00:00
Gerd Moellmann
d9e3b8c640 (x_draw_glyphs): Don't check for cursor overwriting
in full-width rows.
2001-10-24 16:05:41 +00:00
Gerd Moellmann
b547b6e89b (XTset_vertical_scroll_bar) [!USE_TOOLKIT_SCROLL_BARS]:
Fix clearing of area not covered by scroll bar.
2001-10-24 14:05:31 +00:00
Pavel Janík
2beb36f9bb (x_insert_glyphs): Remove unused variables real_end' and real_start'.
(x_draw_image_foreground): Remove unused variables `mask' and `xgcv'.
(glyph_rect): Remove unused variable `area'.
2001-10-24 10:29:11 +00:00
Gerd Moellmann
62e3398212 (fast_find_position): Call row_containing_pos
with additional argument.
2001-10-24 09:12:40 +00:00
Gerd Moellmann
f0a48a01ad (x_draw_glyphs): Remove parameters READ_START and
REAL_END.  Notice if cursor gets overwritten.
(notice_overwritten_cursor): Take X positions as parameters.
(x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
around call to x_draw_glyphs.
2001-10-23 12:05:01 +00:00
Miles Bader
153f5ed71f (x_fix_overlapping_area, x_write_glyphs, expose_area)
(expose_line, x_erase_phys_cursor): Don't use `inverse_p' field.
(XTreassert_line_highlight, x_change_line_highlight):
Functions removed.
(x_initialize): Don't set reassert_line_highlight_hook or
change_line_highlight_hook.
2001-10-20 05:44:30 +00:00
Miles Bader
7ee72033eb Change doc-string comments to new style' [w/doc:' keyword]. 2001-10-17 03:16:12 +00:00
Ken Raeburn
f3fbd15535 Avoid (most) uses of XCAR/XCDR as lvalues, for flexibility in experimenting
with lisp system changes.
2001-10-16 09:09:51 +00:00
Gerd Moellmann
e6269cbb9e (x_draw_glyph_string): Restore clipping after
drawing box.
2001-10-15 10:12:08 +00:00
Pavel Janík
d624284cc8 (xlwmenu_window_p, xlwmenu_redisplay): Add prototypes.
(XTread_socket): Improve style of comments to follow other comments.
2001-10-14 16:10:40 +00:00
Gerd Moellmann
228299fa71 Put doc strings in comments. 2001-10-14 10:36:32 +00:00
Gerd Moellmann
78a9a4c5b4 (notice_overwritten_cursor): Renamed from
note_overwritten_text_cursor.  Rewritten to take glyph widths into
account.
2001-10-12 10:05:03 +00:00
Stefan Monnier
8feddab4e0 Include keymap.h. 2001-10-08 11:39:52 +00:00
Gerd Moellmann
32c82ac0a1 Don't define min/max. 2001-10-08 08:08:08 +00:00
Pavel Janík
01f67d2c30 USE_LUCID can be defined iff USE_X_TOOLKIT is defined.
(xm_scroll_callback) [USE_MOTIF]: Remove unused variable `percent'.
(x_set_toolkit_scroll_bar_thumb) [USE_MOTIF]: Remove unused variable `sb'.
2001-10-08 06:37:59 +00:00
Miles Bader
7c1bef7a5b (x_create_toolkit_scroll_bar): Try to allocate colors for the shadows,
and tell the toolkit about them if we succeed.
(x_destroy_window) [USE_TOOLKIT_SCROLL_BARS]: Free scroll-bar shadow colors.
2001-10-05 16:35:12 +00:00
Gerd Moellmann
f0e299dedc (XTread_socket): Return a non_ascii_keystroke for
unknown keysyms.

(error_msg): New variable.
(x_fatal_error_signal): New function.
(x_connection_closed): Set error_msg.  Install
x_fatal_error_signal as fatal_error_signal_hook around the call to
XtCloseDisplay.
2001-10-05 09:53:07 +00:00
Gerd Moellmann
de507556f3 (x_draw_relief_rect): Draw bottom relief 1 pixel more
to the left.  Some cleanup.
2001-09-27 09:14:30 +00:00
Gerd Moellmann
9f8531e59a (fast_find_position) [0]: Add a presumably more correct
version for after 21.1.
2001-09-25 10:12:53 +00:00
Gerd Moellmann
c69c0ebca4 (refreshicon): Removed. 2001-09-24 13:10:54 +00:00
Gerd Moellmann
eeba008f47 (toplevel): Remove includes in #if 0. 2001-09-24 12:59:19 +00:00
Gerd Moellmann
1d6c120a5f Comment fix. 2001-09-03 15:47:06 +00:00
Gerd Moellmann
7e37626032 (note_mouse_highlight) <help-echo>: When looking for
help-echo for a string which doesn't have help-echo itself, use
get-char-property to obtain the help-echo from the string's buffer
(note_mouse_highlight) <mouse-face>: When on a string that doesn't
have mouse-face, look for mouse-face ``under'' the string for
mouse-face from an overlay.
(fast_find_position): Add parameter STOP.  In the final row,
stop before glyphs having STOP as object.  Don't consider
glyphs that are not from a buffer.
2001-09-03 15:43:10 +00:00
Gerd Moellmann
7b0870b263 (x_set_glyph_string_background_width): Set the glyph
strings background width so that multi-line mouse-face is drawn to
the right edge of the window.
(show_mouse_face): Set the row's mouse_face_p flag after drawing
glyphs.
2001-08-28 14:34:17 +00:00
Gerd Moellmann
82f053ab59 (expose_window_tree, expose_window, expose_line): Return
1 when overwriting mouse-face.
(expose_frame): If mouse-face was overwritten, redo it.
2001-08-15 14:31:44 +00:00
Gerd Moellmann
61869b99b4 (x_dump_glyph_string): Put in #if GLYPH_DEBUG. 2001-08-06 13:37:02 +00:00
Gerd Moellmann
98b8a90f65 (x_get_glyph_string_clip_rect): Minor cleanup. 2001-07-27 15:28:08 +00:00
Gerd Moellmann
c296fc0108 (x_fill_stretch_glyph_string): Remove an assertion. 2001-07-20 09:35:17 +00:00
Gerd Moellmann
e0300d338f Fix a typo. 2001-07-18 10:40:57 +00:00
Gerd Moellmann
1d2b226835 (XTread_socket) <PropertyNotify>: Put the code
ignoring events on foreign windows in #if 0.  Always dispatch
the event after checking it with x_handle_property_notify.
2001-07-12 14:39:45 +00:00