aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32term.c (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Rename enum event_kind items.Pavel Janík2002-06-131-16/+16
|
* (x_draw_bar_cursor): Update parameter list in declaration.Jason Rumney2002-05-251-1/+2
|
* (x_draw_bar_cursor): New argument KIND; callers changed.Jason Rumney2002-05-221-6/+22
| | | | | Handle the `hbar' cursor type. (x_display_and_set_cursor): Handle the HBAR_CURSOR case.
* (x_draw_image_foreground, w32_draw_image_foreground_1):Kim F. Storm2002-05-081-4/+12
| | | | Enlarge cursor rectangle drawn around image with non-zero relief.
* (construct_drag_n_drop): Likewise.Jason Rumney2002-04-161-1/+1
|
* Rename autoselect_window_p to mouse_autoselect_window.Pavel Janík2002-04-031-4/+4
|
* Rename x_autoselect_window_p to autoselect_window_p.Pavel Janík2002-04-011-4/+6
| | | | (note_mouse_movement): Put code for x_autoselect_window_p in #if 0.
* Fix typo.Pavel Janík2002-03-311-1/+1
|
* (w32_draw_relief_rect): Fix calculations of line lengths.Jason Rumney2002-03-291-4/+4
|
* (w32_handle_tool_bar_click): Detect up and down eventsJason Rumney2002-03-231-2/+3
| | | | correctly. Do not pass up_modifier to keyboard buffer.
* (zv_bits): Declare as short, for word alignment.Jason Rumney2002-03-221-7/+3
| | | | | (w32_read_socket) <WM_XBUTTONUP>: Fix last change. (syms_of_w32term): Define x-use-underline-position-properties.
* (w32_read_socket) <WM_XBUTTONUP>: Use XFASTINT to extract mouse co-ordinates.Jason Rumney2002-03-201-1/+4
|
* (x_draw_hollow_cursor): Draw same size as block cursor.Jason Rumney2002-03-061-2/+2
|
* Change defvar_int def and vars to use EMACS_INT instead of just int.Stefan Monnier2002-03-041-1/+1
|
* (x_display_and_set_cursor): Fix typo.Juanma Barranquero2002-03-041-1/+1
|
* (x_display_and_set_cursor): Blink box cursor usingKim F. Storm2002-03-011-4/+17
| | | | hollow box cursor. Blink bar cursor using 1 pixel wide bar.
* (enter_timestamp): Remove unused static variable to prevent warning.Pavel Janík2002-02-231-6/+0
|
* (w32_text_out): Renamed from W32_TEXTOUT.Jason Rumney2002-02-221-5/+6
| | | | Call ExtTextOutA rather than ExtTextOut.
* (glyph_rect): Determine the row and glyph more precisely.Jason Rumney2002-02-181-11/+28
|
* * w32term.c (x_autoselect_window_p): New variable.Jason Rumney2002-02-171-0/+153
| | | | | | | | | | | | (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.
* (disable_mouse_highlight): Removed variable.Kim F. Storm2002-02-161-6/+22
| | | | | | | | (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.
* (w32_native_per_char_metric): Disable 2002-01-20 change.Jason Rumney2002-02-061-3/+7
|
* (x_scroll_run): Use ScrollWindowEx in place of BitBlt.Jason Rumney2002-01-241-5/+30
| | | | | If region left to draw is not what was expected, mark the frame as garbaged.
* (x_update_window_begin): Only hide caret ifJason Rumney2002-01-231-6/+9
| | | | | | | 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.
* (w32_system_caret_width): Remove.Jason Rumney2002-01-201-29/+57
| | | | | | | | | | (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.
* (w32_native_per_char_metric): Don't trust the metricsJason Rumney2002-01-201-3/+14
| | | | | that Windows returns. If a double check fails, try to guess how ExtTextOut is going to act.
* (x_erase_phys_cursor): Don't erase cursor if cursor rowKim F. Storm2002-01-161-0/+6
| | | | | is invisible. This can happen if cursor is on top line of a window, and we switch to a buffer with a header line.
* (parse_button): New parameter xbutton. Callers changed.Jason Rumney2002-01-131-4/+20
| | | | (w32_read_socket): Handle new "XBUTTON" messages.
* Fix typos.Pavel Janík2002-01-121-2/+2
|
* (x_draw_glyphs): Don't call notice_overwritten_cursorJason Rumney2002-01-051-1/+6
| | | | if OVERLAPS_P.
* (x_setup_relief_colors): Don't compute an image'sJason Rumney2002-01-051-16/+28
| | | | | | | | | | | | | | | 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.
* Doc fix.Pavel Janík2001-12-201-1/+1
|
* (w32_read_socket) <WM_MOUSELEAVE>: Cancel help echoJason Rumney2001-12-011-0/+30
| | | | and mouse face.
* Merged fringe width related changes from xterm.c.Kim F. Storm2001-12-011-98/+198
|
* (w32_read_socket) <WM_MENUSELECT>: Remove.Jason Rumney2001-11-281-13/+1
| | | | (w32_read_socket): Use EQ to compare frames.
* (x_after_update_window_line): Doc fix.Jason Rumney2001-11-241-2/+16
| | | | | (w32_read_socket): Doc fix. Avoid SET_FRAME_GARBAGED for tip frames. <WM_SHOWWINDOW>: Redo mouse highlight when hiding tip frame.
* (note_mouse_highlight): Fix type of variable `ignore'.Jason Rumney2001-11-181-152/+149
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | (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'.
* Fringe cleanup.Kim F. Storm2001-11-161-59/+59
| | | | | | | | 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.
* Change doc-string comments to `new style'. [w/`doc:' keyword]. Doc fixes.Jason Rumney2001-11-121-25/+25
|
* (x_display_and_set_cursor): Do not move system caretJason Rumney2001-11-071-22/+24
| | | | if cursor_glyph is NULL.
* (x_display_and_set_cursor): Fix w32 compilation error.Sam Steingold2001-11-051-1/+1
|
* (x_display_and_set_cursor): Use buffer-localRichard M. Stallman2001-11-051-2/+5
| | | | value of `cursor-in-non-selected-windows'.
* (w32_system_caret_hwnd, w32_system_caret_width)Jason Rumney2001-10-271-1/+54
| | | | | | | (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.
* (fast_find_position): Call row_containing_posGerd Moellmann2001-10-241-1/+1
| | | | with additional argument.
* (x_erase_phys_cursor): Remove inverse_p.Jason Rumney2001-10-211-2/+0
|
* Fix formatting for new function.Jason Rumney2001-10-211-1/+2
|
* (remember_mouse_glyph): New function.Jason Rumney2001-10-211-488/+951
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (w32_mouse_position): Use it. (note_mouse_movement): If the mouse moved off the glyph, remember its new position. Sync with xterm.c: (notice_overwritten_cursor): Renamed from note_overwritten_text_cursor. Rewritten to take glyph widths into account. (x_y_to_hpos_vpos): Add parameter BUFFER_ONLY_P. (fast_find_string_pos): New function. (fast_find_position): Return the correct vpos. Add parameter STOP. In the final row, stop before glyphs having STOP as object. Don't consider glyphs that are not from a buffer. (fast_find_position) [0]: Add a presumably more correct version for after 21.1. (expose_window_tree, expose_frame): Don't compute intersections here. (expose_window): Do it here instead. (expose_window_tree, expose_window, expose_line): Return 1 when overwriting mouse-face. (expose_window): If W is the window currently being updated, mark the frame garbaged. (expose_frame): If mouse-face was overwritten, redo it. (x_use_underline_position_properties): New variable. (syms_of_xterm): DEFVAR_BOOL it. (x_draw_glyph_string): Add comment to use it in future. (x_draw_glyph_string): Restore clipping after drawing box. Fix a computation of the underline position. (w32_get_glyph_string_clip_rect): Minor cleanup. (x_fill_stretch_glyph_string): Remove an assertion. (x_produce_glyphs): Don't convert multibyte characters to unibyte characters in unibyte buffers. (cursor_in_mouse_face_p): New function. (x_draw_stretch_glyph_string): Use it to choose a different GC when drawing a cursor within highlighted text. Don't draw background again if it has already been drawn. (x_draw_glyph_string_box): Don't draw a full-width box just because the glyph row's full_width_p flag is set. (x_draw_glyphs): Fix computation of rightmost x for full-width rows. (x_dump_glyph_string): Put in #if GLYPH_DEBUG. (w32_draw_relief_rect): Extend left shadow to the bottom and left; change bottom shadow accordingly. Some cleanup. (x_update_window_end): Handle overwritten mouse face also for tool bar windows. (show_mouse_face): Set the glyph row's mouse_face_p flag also when DRAW is DRAW_IMAGE_RAISED. (clear_mouse_face): Return 1 if text with mouse face was actually redrawn. Make the function static. Reset dpyinfo->mouse_face_overlay otherwise note_mouse_highlight might optimize away highlighting if we pass over that same overlay again. (note_mouse_highlight): Call mouse_face_overlay_overlaps to detect a case where we have to highlight a different region despite not having left the currently highlighted region. Set mouse_face_overlay in the x_display_info. Avoid changing the mouse pointer shape when show_mouse_face has already done it, or there is no need. Handle mouse-face and help-echo in strings. (glyph_rect): New function. (w32_mouse_position): Use it to raise the threshold for mouse movement event generation. (w32_initialize_display_info): Initialize the x_display_info's mouse_face_overlay. (w32_set_vertical_scroll_bar): Don't clear a zero height or width area. (w32_set_vertical_scroll_bar, x_scroll_bar_create): Don't configure a widget to zero height.
* (x_fix_overlapping_area, x_write_glyphs, expose_area)Miles Bader2001-10-201-59/+5
| | | | | (expose_line, x_erase_phys_cursor): Don't use `inverse_p' field. (w32_reassert_line_highlight, x_change_line_highlight): Functions removed.
* (w32_encode_char): Get cached codepage from font_info,Andrew Innes2001-10-171-1/+1
| | | | | rather than working it out by calling w32_codepage_for_font for every glyph.
* (w32_read_socket): Determine clipping rectangle forAndrew Innes2001-10-171-2/+12
| | | | | | the entire frame, including areas covered by scrollbars and the menubar. This avoids internal arguments about whether a frame is fully obscured or not.