| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
| |
(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_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.
|
| |
|
| |
|
|
|
|
|
| |
face's background before the face's foreground.
(XTread_socket): Call note_mouse_movement for EnterNotify.
|
|
|
|
| |
Preserve the main widget's x and y position.
|
|
|
|
|
|
|
|
|
| |
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_make_frame_invisible): Use XWithdrawWindow again.
|
|
|
|
| |
Use row/col instead of buffer position to keep track of highlighted area.
|
|
|
|
| |
(note_mouse_highlight): Reorder test for simplicity.
|
|
|
|
| |
New FLAGS arg deleted. Callers changed.
|
|
|
|
|
| |
(x_calc_absolute_position): New arg FLAGS. Use XNegative and YNegative.
(x_set_offset): Pass new arg.
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
Don't touch win_gravity field if no PWinGravity.
|
| |
|
| |
|
|
|
|
|
|
| |
XSetInputFocus if event is not for an existing frame.
(XTread_socket) [USE_X_TOOLKIT]: Never pass motion events to the toolkit.
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
| |
and simplify the toolkit conditional for those cases.
|
|
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
| |
(XTread_socket): Handle that kind of message.
(x_term_init): Specify -name option in XtAppInitialize.
(Qface, Qmouse_face): Supply missing Lisp_Object.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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_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.
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
|
|
|
|
|
| |
(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.
|
| |
|
|
|
|
|
| |
(note_mouse_highlight): Check window still shows buffer that was
displayed in it.
|
|
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
| |
before it causes an error.
|
|
|
|
| |
(note_mouse_highlight): Handle disable_mouse_highlight.
|
|
|
|
| |
XtGetValues to get the width and the height of the Emacs frame.
|
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
(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_any_window_to_frame.
|
|
|
|
|
| |
[USE_X_TOOLKIT]: Call XTranslateCoordinates for case ConfigureNotify
when send_event is 0 and when the event is relative to toplevel widget.
|
|
|
|
|
|
| |
(XTmouse_position): Don't convert to glyph units.
(XTmouse_position): Use x_any_window_to_frame.
|
| |
|
|
|
|
|
|
|
|
| |
(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.
|
|
|
|
| |
(cases FocusIn, FocusOut): Use x_any_window_to_frame.
|
|
|
|
| |
of a glyph with the cursor on it.
|