1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2026-04-19 20:40:41 -07:00
Commit graph

169 commits

Author SHA1 Message Date
Kim F. Storm
1b7334a40e (note_mouse_highlight): Don't use mouse-face if hidden. 2002-10-26 23:53:07 +00:00
Kim F. Storm
1cdf2e1276 (x_display_and_set_cursor): Get active_cursor from
get_window_cursor_type to track system caret.
2002-10-24 19:58:23 +00:00
Juanma Barranquero
316ed82195 (w32_term_init): Pass XColor to w32_define_color, not COLORREF. 2002-10-23 16:53:48 +00:00
Kim F. Storm
4baaed0f99 Changed all occurrences of w32_highlight_frame with x_highlight_frame. 2002-08-30 13:19:45 +00:00
Kim F. Storm
fdbe859cfb (x_specified_cursor_type): Remove prototype.
(x_draw_bar_cursor): Use FRAME_CURSOR_WIDTH.
(x_display_and_set_cursor): Use get_window_cursor_type.
Remove unused local variables cursor_off_state.
Redraw cursor if hbar cursor width changes.
2002-08-30 12:05:04 +00:00
Richard M. Stallman
95f2448c93 (x_display_and_set_cursor): Use FRAME_BLINK_OFF_CURSOR
and FRAME_BLINK_OFF_CURSOR_WIDTH for blinking cursor off.

(x_display_and_set_cursor): Check FRAME_CURSOR_WIDTH for bar cursor.

(expose_overlaps): New function.
(expose_window): Use it to fix the display of overlapping rows.
2002-08-29 14:38:12 +00:00
Ken Raeburn
d5db40779d Most uses of XSTRING combined with STRING_BYTES or indirection changed to
SCHARS, SBYTES, STRING_INTERVALS, SREF, SDATA; explicit size_byte references
left unchanged for now.
2002-07-15 00:01:34 +00:00
Pavel Janík
3b8f965153 Rename enum event_kind items. 2002-06-13 14:59:38 +00:00
Jason Rumney
70fa9f1fa2 (x_draw_bar_cursor): Update parameter list in declaration. 2002-05-25 09:08:37 +00:00
Jason Rumney
17456df15c (x_draw_bar_cursor): New argument KIND; callers changed.
Handle the `hbar' cursor type.
(x_display_and_set_cursor): Handle the HBAR_CURSOR case.
2002-05-22 19:37:56 +00:00
Kim F. Storm
c65eff23e2 (x_draw_image_foreground, w32_draw_image_foreground_1):
Enlarge cursor rectangle drawn around image with non-zero relief.
2002-05-08 21:30:57 +00:00
Jason Rumney
54a0ce0f22 (construct_drag_n_drop): Likewise. 2002-04-16 22:24:25 +00:00
Pavel Janík
ee8ceff815 Rename autoselect_window_p to mouse_autoselect_window. 2002-04-03 08:39:50 +00:00
Pavel Janík
b0981e1402 Rename x_autoselect_window_p to autoselect_window_p.
(note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
2002-04-01 13:45:27 +00:00
Pavel Janík
42d9d13aa3 Fix typo. 2002-03-31 16:43:51 +00:00
Jason Rumney
df3bd29dde (w32_draw_relief_rect): Fix calculations of line lengths. 2002-03-29 18:37:50 +00:00
Jason Rumney
d4ae780a9b (w32_handle_tool_bar_click): Detect up and down events
correctly.  Do not pass up_modifier to keyboard buffer.
2002-03-23 00:33:22 +00:00
Jason Rumney
b8b47c1966 (zv_bits): Declare as short, for word alignment.
(w32_read_socket) <WM_XBUTTONUP>: Fix last change.
(syms_of_w32term): Define x-use-underline-position-properties.
2002-03-22 22:08:10 +00:00
Jason Rumney
e81916d1ba (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to extract mouse co-ordinates. 2002-03-20 20:58:03 +00:00
Jason Rumney
d6dc9151cc (x_draw_hollow_cursor): Draw same size as block cursor. 2002-03-06 23:17:38 +00:00
Stefan Monnier
31ade731e6 Change defvar_int def and vars to use EMACS_INT instead of just int. 2002-03-04 23:41:00 +00:00
Juanma Barranquero
9652402e78 (x_display_and_set_cursor): Fix typo. 2002-03-04 08:32:49 +00:00
Kim F. Storm
e1429afe8b (x_display_and_set_cursor): Blink box cursor using
hollow box cursor.  Blink bar cursor using 1 pixel wide bar.
2002-03-01 22:40:20 +00:00
Pavel Janík
aa2289381b (enter_timestamp): Remove unused static variable to prevent warning. 2002-02-23 16:28:28 +00:00
Jason Rumney
1cb8c82e46 (w32_text_out): Renamed from W32_TEXTOUT.
Call ExtTextOutA rather than ExtTextOut.
2002-02-22 23:59:50 +00:00
Jason Rumney
1e2eddb435 (glyph_rect): Determine the row and glyph more precisely. 2002-02-18 23:31:06 +00:00
Jason Rumney
549808dbb6 * w32term.c (x_autoselect_window_p): New variable.
(syms_of_w32term): DEFVAR_BOOL and initialize it.
(note_mouse_movement): Use it.

* w32term.c (x_check_fullscreen, x_check_fullscreen_move)
(x_fullscreen_adjust): New functions.
(w32_read_socket) <WM_WINDOWPOSCHANGED>:  Don't	resize to
fullscreen.  Call x_check_fullscreen_move, and set the
want_fullscreen member of output_data.w32
<WM_ACTIVATE, WM_ACTIVATEAPP>: Call x_check_fullscreen.
2002-02-17 23:42:40 +00:00
Kim F. Storm
3d26a7c2f0 (disable_mouse_highlight): Removed variable.
(note_mouse_highlight): Disable highlight if Vmouse_highlight is nil.
(show_mouse_face): Don't show highlight if mouse_face_hidden is	set.
(w32_read_socket): Turn mouse_face_hidden off after mouse movement,
and on after keyboard input.
(w32_initialize_display_info): Initialize mouse_face_hidden.
2002-02-16 23:59:22 +00:00
Jason Rumney
f6dd0c50c3 (w32_native_per_char_metric): Disable 2002-01-20 change. 2002-02-06 20:57:44 +00:00
Jason Rumney
4d6e81995c (x_scroll_run): Use ScrollWindowEx in place of BitBlt.
If region left to draw is not what was expected, mark the frame as
garbaged.
2002-01-24 20:41:46 +00:00
Jason Rumney
ab76d37680 (x_update_window_begin): Only hide caret if
w32_use_visible_system_caret is set.
(x_update_window_end): Only show caret if
w32_use_visible_system_caret is set.
(syms_of_w32term): Handle SystemParametersInfo call failing.
2002-01-23 22:03:26 +00:00
Jason Rumney
99558ce885 (w32_system_caret_width): Remove.
(w32_use_visible_system_caret): New user flag.
(syms_of_w32term): DEFVAR_BOOL it.  Initialize based on whether
Windows reports a screen reader running.
(x_update_window_begin): Hide the system caret.
(x_update_window_end): Show the system caret.
(x_display_and_set_cursor): Don't draw a cursor when
w32_use_visible_system_caret is set.  Do not adjust width.
2002-01-20 23:11:52 +00:00
Jason Rumney
73dc743ce9 (w32_native_per_char_metric): Don't trust the metrics
that Windows returns.  If a double check fails, try to guess how
ExtTextOut is going to act.
2002-01-20 14:54:48 +00:00
Kim F. Storm
a2c6de8eca (x_erase_phys_cursor): Don't erase cursor if cursor row
is invisible.  This can happen if cursor is on top line of a
window, and we switch to a buffer with a header line.
2002-01-16 23:06:10 +00:00
Jason Rumney
53823ab9c1 (parse_button): New parameter xbutton. Callers changed.
(w32_read_socket): Handle new "XBUTTON" messages.
2002-01-13 12:16:05 +00:00
Pavel Janík
269b7745a3 Fix typos. 2002-01-12 16:01:51 +00:00
Jason Rumney
30c6d055a9 (x_draw_glyphs): Don't call notice_overwritten_cursor
if OVERLAPS_P.
2002-01-05 00:46:01 +00:00
Jason Rumney
6637c996f7 (x_setup_relief_colors): Don't compute an image's
background color if it doesn't have a Pixmap.
(notice_overwritten_cursor): Don't depend on
output_cursor and updated_area.  Compare pixel coordinates with
window's cursor pixel coordinates.
(x_draw_glyphs, x_clear_end_of_line, show_mouse_face): Call
notice_overwritten_cursor with new arg list.
(show_mouse_face): Fix bug setting a row's mouse_face_p flag
unconditionally.
(x_draw_image_relief): Use predefined macro instead of
constant when the value of `tool_bar_button_relief' is negative.

(x_display_and_set_cursor): Fix PostMessage arg types.
2002-01-05 00:09:08 +00:00
Pavel Janík
f0529b5b1a Doc fix. 2001-12-20 19:01:00 +00:00
Jason Rumney
1576fbfa1d (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echo
and mouse face.
2001-12-01 11:09:33 +00:00
Kim F. Storm
d33c49e879 Merged fringe width related changes from xterm.c. 2001-12-01 01:34:24 +00:00
Jason Rumney
eb77a5f44a (w32_read_socket) <WM_MENUSELECT>: Remove.
(w32_read_socket): Use EQ to compare frames.
2001-11-28 20:38:49 +00:00
Jason Rumney
b71b81116a (x_after_update_window_line): Doc fix.
(w32_read_socket): Doc fix.  Avoid SET_FRAME_GARBAGED for tip frames.
<WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
2001-11-24 17:31:06 +00:00
Jason Rumney
6ff3e5e3cd (note_mouse_highlight): Fix type of variable `ignore'.
(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.
(x_after_update_window_line): Clear internal border in different
circumstances.
(w32_set_vertical_scroll_bar): Check for width and height > 0.
(w32_draw_relief_rect): Correct 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}.
(x_display_and_set_cursor): If cursor_in_echo_area, use NO_CURSOR
if cursor_in_non_selected_windows is false.
(show_mouse_face): Clean up.  Recognize overwritten cursor
differently.
(x_draw_glyphs): Remove parameters REAL_START and REAL_END.
Notice if cursor gets overwritten.
(notice_overwritten_cursor): Renamed from
note_overwritten_text_cursor.  Rewritten to take glyph widths
into account, and to take X positions as parameters.
(x_draw_phys_cursor_glyph): Save state of w->phys_cursor_on_p
around call to x_draw_glyphs.
(x_setup_relief_colors): Use `IMAGE_BACKGROUND' and
`IMAGE_BACKGROUND_TRANSPARENT' to calculate the correct background
color to use for image glyph reliefs.
(x_draw_image_relief): Accept zero tool_bar_button_relief.
(glyph_rect): Remove unused variable `area'.
2001-11-18 21:53:11 +00:00
Kim F. Storm
33c34beaa5 Fringe cleanup.
Comment fixes. Use renamed symbols.
(fringe_bitmap_type): Renamed from bitmap_type.
(NO_FRINGE_BITMAP): Renamed from NO_BITMAP.
(w32_draw_fringe_bitmap): Renamed from w32_draw_bitmap.
(x_draw_row_fringe_bitmaps): Renamed from x_draw_row_bitmaps.
2001-11-16 13:06:02 +00:00
Jason Rumney
33f096701c Change doc-string comments to new style'. [w/doc:' keyword]. Doc fixes. 2001-11-12 23:57:09 +00:00
Jason Rumney
1f41b196a3 (x_display_and_set_cursor): Do not move system caret
if cursor_glyph is NULL.
2001-11-07 21:11:00 +00:00
Sam Steingold
b116830bc0 (x_display_and_set_cursor): Fix w32 compilation error. 2001-11-05 15:02:13 +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
Jason Rumney
abb15ebda6 (w32_system_caret_hwnd, w32_system_caret_width)
(w32_system_caret_height, w32_system_caret_x)
(w32_system_caret_y): New variables for tracking system caret.
(w32_initialize): Initialize them.
(x_display_and_set_cursor): Make system caret follow the active cursor.
2001-10-27 22:21:24 +00:00