aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
Commit message (Collapse)AuthorAgeFilesLines
* (x_set_window_size): If cursor outside new size, mark it off.Richard M. Stallman1994-05-231-11/+29
| | | | | | | (note_mouse_highlight): Handle case of highlight extending past end of window. (fast_find_position): Fix bugs when no text on screen and when the mouse is on an empty line.
* (x_wm_set_window_state) [USE_X_TOOLKIT]: Use XtSetValues.Richard M. Stallman1994-05-211-23/+37
| | | | | | | | | (x_iconify_frame) [USE_X_TOOLKIT]: New code for invisible window case. (XtNinitialState) [USE_X_TOOLKIT]: New #define. (x_make_frame_invisible): Mostly combine toolkit/non-toolkit cases, in the process fixing a dumb bug. (x_iconify_frame): Fix error messages.
* (x_display_box_cursor): Preserve mouse highlight if the old cursor was in it.Richard M. Stallman1994-05-151-1/+18
|
* (XTread_socket): For button events, clear compose_status.Richard M. Stallman1994-05-141-0/+2
|
* (dumpglyphs): For cursor foreground, try theRichard M. Stallman1994-05-121-2/+6
| | | | | face's background before the face's foreground. (XTread_socket): Call note_mouse_movement for EnterNotify.
* (x_set_window_size) [USE_X_TOOLKIT]:Richard M. Stallman1994-05-091-1/+11
| | | | Preserve the main widget's x and y position.
* (x_set_offset): Set gravity and size hintRichard M. Stallman1994-05-081-15/+50
| | | | | | | | | before moving the window. (XTread_socket): For ReparentNotify, use x_top_window_to_frame. Also recompute frame position using x_real_positions. For ConfigureNotify, don't ignore send_events. Also recompute frame position using x_real_positions.
* (x_set_offset): Update XNegative and YNegative for new pos.Richard M. Stallman1994-05-061-2/+7
| | | | (x_make_frame_invisible): Use XWithdrawWindow again.
* (note_mouse_highlight, show_mouse_face, clear_mouse_face, x_destroy_window):Karl Heuer1994-05-021-20/+22
| | | | Use row/col instead of buffer position to keep track of highlighted area.
* (show_mouse_face): Fix test for cursor in highlighted area.Karl Heuer1994-05-021-6/+6
| | | | (note_mouse_highlight): Reorder test for simplicity.
* (x_calc_absolute_position): Use size_hint_flags.Richard M. Stallman1994-05-021-3/+3
| | | | New FLAGS arg deleted. Callers changed.
* (x_wm_set_size_hint): Don't try to handle negative positions.Richard M. Stallman1994-05-011-17/+5
| | | | | (x_calc_absolute_position): New arg FLAGS. Use XNegative and YNegative. (x_set_offset): Pass new arg.
* (x_wm_set_size_hint): Always set PWinGravity.Richard M. Stallman1994-04-301-16/+51
| | | | | | | | | Rename the args. Compute x and y fields from negative positions. Use XGetWMNormalHints if X11R4 or newer. (x_make_frame_visible): Call x_set_offset only if not USE_X_TOOLKIT. (x_make_frame_invisible): Call x_wm_set_size_hint. (x_set_offset): Pass 0 as 3rd arg to x_wm_set_size_hint. (x_set_window_size): Likewise. Set win_gravity field here if nec.
* (x_wm_set_size_hint): Don't set PMaxSize.Richard M. Stallman1994-04-291-2/+3
| | | | Don't touch win_gravity field if no PWinGravity.
* (XTread_socket): Only top window cares about LeaveNotify.Karl Heuer1994-04-281-19/+21
|
* (x_make_frame_visible): Use XtMapWidget, not XtPopup.Richard M. Stallman1994-04-281-1/+2
|
* (XTread_socket, case ClientMessage): Don't callRichard M. Stallman1994-04-271-6/+8
| | | | | | XSetInputFocus if event is not for an existing frame. (XTread_socket) [USE_X_TOOLKIT]: Never pass motion events to the toolkit.
* (x_wm_set_size_hint): Do set max_height, max_width, and PMaxSize flag.Richard M. Stallman1994-04-271-1/+5
|
* (XTread_socket) [USE_X_TOOLKIT]: Undo previous change.Richard M. Stallman1994-04-271-3/+0
|
* (XTmouse_position, XTread_socket): Don't use last_mouse_frame if it's dead.Karl Heuer1994-04-251-2/+2
|
* (x_term_init): Add explicit cast.Karl Heuer1994-04-251-1/+1
|
* (XTread_socket) [USE_X_TOOLKIT]: Let toolkit handle menu bar click.Richard M. Stallman1994-04-251-0/+3
|
* (x_set_mouse_pixel_position): New function.Richard M. Stallman1994-04-221-4/+14
|
* (x_make_frame_visible): Args to x_set_offset were swapped.Richard M. Stallman1994-04-211-1/+1
|
* (XTread_socket): Delete the non-NEW_SELECTIONS codeRichard M. Stallman1994-04-201-62/+16
| | | | and simplify the toolkit conditional for those cases.
* (XTread_socket, case ClientMessage): Use x_window_to_frame unconditionally.Richard M. Stallman1994-04-201-21/+33
| | | | | | | | | | (x_make_frame_invisible): Explicitly clear visible and iconified flags, as well as the async flags. (XTread_socket): Call XSetInputFocus. (x_make_frame_invisible) [USE_X_TOOLKIT]: Use XtPopdown. (XTread_socket): Call _XEditResCheckMessages only if HAVE_X11R5.
* (Xatom_editres_name): Variable defined.Richard M. Stallman1994-04-171-3/+16
| | | | | | | (XTread_socket): Handle that kind of message. (x_term_init): Specify -name option in XtAppInitialize. (Qface, Qmouse_face): Supply missing Lisp_Object.
* (dumpglyphs): When HL=2, check explicitly for usingRichard M. Stallman1994-04-171-32/+20
| | | | | | | | | | | | | | | | | | the frame's default font or not. (XTread_socket): For UnmapNotify, use x_any_window_to_frame. (x_set_offset): New arg CHANGE_GRAVITY. (x_make_frame_visible): Pass new arg. (x_wm_set_size_hint): Args spec_x and spec_y deleted. (x_set_offset, x_set_window_size): Don't pass those args. (x_destroy_window): Just clear out mouse_face... vars. (x_wm_set_size_hint): Use win_gravity from frame. (x_make_frame_visible): Call x_set_offset.
* (x_make_frame_visible): Don't call XMapSubwindows.Richard M. Stallman1994-04-141-37/+54
| | | | | | | | | | | | | | | | | | (x_iconify_frame): Likewise. (pending_autoraise_frame): New variable. (x_new_focus_frame): Don't autoraise here; just set that var. (XTread_socket): Raise that frame here. (x_destroy_window): Call clear_mouse_face if necessary. (x_new_font): Always call x_set_window_size. (x_wm_set_size_hint): If PROMPTING is 0, copy the old win_gravity field. If USPosition is set, don't set PWinGravity. (x_wm_set_size_hint): If change_gravity is 0, just don't set the gravity.
* (dumpglyphs): Clear any extra pixel rows below the text.Richard M. Stallman1994-04-101-33/+217
| | | | | | | | (x_display_box_cursor): Explicitly clear full height of line. (dumpglyphs): New arg just_foreground. Callers changed. (x_set_window_size): Call XSync. (note_mouse_highlight): Do nothing if buffer has changed.
* (stufflines, scraplines, dumprectangle, x_do_pending_expose)Richard M. Stallman1994-04-091-26/+30
| | | | | | | | | (pixel_to_glyph_coords, x_draw_box, clear_cursor, x_display_bar_cursor) (x_set_resize_hint, x_set_mouse_position, x_wm_set_size_hint) (XTclear_end_of_line, redraw_previous_char): Use line_height field. (x_new_font): If frame is new, set line_height field. Otherwise call frame_update_line_height.
* (show_mouse_face): Change the mouse cursor accordingly.Fred Pierresteguy1994-04-081-0/+6
|
* (note_mouse_highlight): Temporarily widen the buffer.Richard M. Stallman1994-04-051-12/+10
| | | | | (note_mouse_highlight): Check window still shows buffer that was displayed in it.
* (note_mouse_highlight): Do nothing if gc_in_progress.Richard M. Stallman1994-04-041-8/+59
| | | | | | | | | | Set mouse_face_deferred_gc when that case arise. (XTframe_up_to_date): If mouse_face_deferred_gc, redo highlighting. (show_mouse_face): Turn off cursor only if it's in the area being manipulated. (XTupdate_begin): Don't turn off highlight if we aren't updating the window that it is in.
* (note_mouse_highlight): Reject out-of-range pos valueRichard M. Stallman1994-04-031-1/+7
| | | | before it causes an error.
* (fast_find_position): Always return coords within the window.Richard M. Stallman1994-04-031-7/+24
| | | | (note_mouse_highlight): Handle disable_mouse_highlight.
* (x_wm_set_size_hint): Add USE_X_TOOLKIT conditional and callFred Pierresteguy1994-04-011-0/+11
| | | | XtGetValues to get the width and the height of the Emacs frame.
* (construct_menu_click, construct_mouse_click):Richard M. Stallman1994-04-011-6/+12
| | | | | | | | Use XSET when setting result->x and result->y. (note_mouse_highlight): Use the value from sort_overlays. Make the window's buffer current temporarily. window_end_pos is relative to Z, not ZV.
* [INCLUDED_FCNTL]: Don't include fcntl.h again.Richard M. Stallman1994-03-311-3/+320
| | | | | | | | | | | | | | | | | | | | | | (XTread_socket, MotionNotify and LeaveNotify cases): If not in any frame, call clear_mouse_face. (x_term_init): Set frame_up_to_date_hook. (XTframe_up_to_date): New function. (XTupdate_begin): Turn off mouse face display, and defer it. (XTupdate_end): Undefer. (mouse_face_defer): New variable. (mouse_face_mouse_frame, mouse_face_mouse_x, mouse_face_mouse_y): New variables. (dumpglyphs): Handle HL = 3 by using mouse_face_face_id. (note_mouse_movement): Check for mouse face. (show_mouse_face, fast_find_position): New functions. (clear_mouse_face): New functions. (mouse_face_beg, mouse_face_end, mouse_face_face_id): New variables. (mouse_face_window): New variable. (syms_of_xterm): Init and staticpro it.
* (x_find_modifier_meanings): Skip zero entries.Karl Heuer1994-03-281-0/+4
|
* (x_window_to_scroll_bar, x_new_font): Use assignment, not initialization.Karl Heuer1994-03-251-3/+4
|
* (dumpglyphs): Use the fast macros.Karl Heuer1994-03-191-3/+3
|
* (x_scroll_bar_expose): Don't make the right border thicker.Karl Heuer1994-03-151-6/+0
|
* (XTread_socket): For case ClientMessage and Xatom_wm_delete_window, useFred Pierresteguy1994-02-281-1/+1
| | | | x_any_window_to_frame.
* (XTread_socket): For case ConfigureNotify, call x_any_window_to_frame.Fred Pierresteguy1994-02-251-3/+35
| | | | | [USE_X_TOOLKIT]: Call XTranslateCoordinates for case ConfigureNotify when send_event is 0 and when the event is relative to toplevel widget.
* (construct_mouse_click): Don't convert to glyph units.Richard M. Stallman1994-02-241-4/+19
| | | | | | (XTmouse_position): Don't convert to glyph units. (XTmouse_position): Use x_any_window_to_frame.
* (construct_menu_click): Undo previous change.Richard M. Stallman1994-02-221-9/+4
|
* (x_had_errors_p): New function.Richard M. Stallman1994-02-211-25/+43
| | | | | | | | (construct_menu_click): Convert x pos from pixels to glyphs. Move function after pixel_to_glyph_coords. [!USE_X_TOOLKIT] (x_any_window_to_frame): Define as x_window_to_frame.
* (XTread_socket--cases KeyPress, EnterNotify, LeaveNotify)Richard M. Stallman1994-02-191-5/+5
| | | | (cases FocusIn, FocusOut): Use x_any_window_to_frame.
* (dumpglyphs): Try various alternatives for foreground colorRichard M. Stallman1994-02-181-1/+19
| | | | of a glyph with the cursor on it.