1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-12-18 10:16:51 +00:00
Commit Graph

167 Commits

Author SHA1 Message Date
Richard M. Stallman
b72a58fd20 (x_wm_set_size_hint): Don't set PMaxSize.
Don't touch win_gravity field if no PWinGravity.
1994-04-29 04:04:51 +00:00
Karl Heuer
10c5e63d23 (XTread_socket): Only top window cares about LeaveNotify. 1994-04-28 07:59:17 +00:00
Richard M. Stallman
d7a38a2ed9 (x_make_frame_visible): Use XtMapWidget, not XtPopup. 1994-04-28 07:46:27 +00:00
Richard M. Stallman
0a1788157b (XTread_socket, case ClientMessage): Don't call
XSetInputFocus if event is not for an existing frame.

(XTread_socket) [USE_X_TOOLKIT]: Never pass motion events to the toolkit.
1994-04-27 08:27:00 +00:00
Richard M. Stallman
7553a6b72b (x_wm_set_size_hint): Do set max_height, max_width, and PMaxSize flag. 1994-04-27 05:03:51 +00:00
Richard M. Stallman
6ecbd1cd8b (XTread_socket) [USE_X_TOOLKIT]: Undo previous change. 1994-04-27 04:47:29 +00:00
Karl Heuer
06ef4a3f7e (XTmouse_position, XTread_socket): Don't use last_mouse_frame if it's dead. 1994-04-25 22:55:33 +00:00
Karl Heuer
983f76b88f (x_term_init): Add explicit cast. 1994-04-25 22:32:24 +00:00
Richard M. Stallman
afb66a9aa8 (XTread_socket) [USE_X_TOOLKIT]: Let toolkit handle menu bar click. 1994-04-25 22:06:13 +00:00
Richard M. Stallman
9b378208db (x_set_mouse_pixel_position): New function. 1994-04-22 21:46:12 +00:00
Richard M. Stallman
996e89cd05 (x_make_frame_visible): Args to x_set_offset were swapped. 1994-04-21 08:33:48 +00:00
Richard M. Stallman
b2bd9b6ab1 (XTread_socket): Delete the non-NEW_SELECTIONS code
and simplify the toolkit conditional for those cases.
1994-04-20 09:01:18 +00:00
Richard M. Stallman
5627c40e58 (XTread_socket, case ClientMessage): Use x_window_to_frame unconditionally.
(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.
1994-04-20 08:51:06 +00:00
Richard M. Stallman
c2df547cfa (Xatom_editres_name): Variable defined.
(XTread_socket): Handle that kind of message.
(x_term_init): Specify -name option in XtAppInitialize.

(Qface, Qmouse_face): Supply missing Lisp_Object.
1994-04-17 23:46:08 +00:00
Richard M. Stallman
dc05a16bad (dumpglyphs): When HL=2, check explicitly for using
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.
1994-04-17 19:30:06 +00:00
Richard M. Stallman
0134a21068 (x_make_frame_visible): Don't call XMapSubwindows.
(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.
1994-04-14 17:31:06 +00:00
Richard M. Stallman
0cdd0c9f3e (dumpglyphs): Clear any extra pixel rows below the text.
(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.
1994-04-10 06:06:51 +00:00
Richard M. Stallman
a27f9f86ef (stufflines, scraplines, dumprectangle, x_do_pending_expose)
(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.
1994-04-09 06:33:24 +00:00
Fred Pierresteguy
27ead1d5eb (show_mouse_face): Change the mouse cursor accordingly. 1994-04-08 15:57:24 +00:00
Richard M. Stallman
e444162e0f (note_mouse_highlight): Temporarily widen the buffer.
(note_mouse_highlight): Check window still shows buffer that was
displayed in it.
1994-04-05 07:41:09 +00:00
Richard M. Stallman
514e46817a (note_mouse_highlight): Do nothing if gc_in_progress.
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.
1994-04-04 00:43:13 +00:00
Richard M. Stallman
f8bdb8e6b2 (note_mouse_highlight): Reject out-of-range pos value
before it causes an error.
1994-04-03 08:09:45 +00:00
Richard M. Stallman
bf1c0ba101 (fast_find_position): Always return coords within the window.
(note_mouse_highlight): Handle disable_mouse_highlight.
1994-04-03 02:04:04 +00:00
Fred Pierresteguy
7e4f2521a4 (x_wm_set_size_hint): Add USE_X_TOOLKIT conditional and call
XtGetValues to get the width and the height of the Emacs frame.
1994-04-01 13:53:31 +00:00
Richard M. Stallman
09fe4c319e (construct_menu_click, construct_mouse_click):
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.
1994-04-01 10:12:10 +00:00
Richard M. Stallman
b8009dd11c [INCLUDED_FCNTL]: Don't include fcntl.h again.
(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.
1994-03-31 23:17:23 +00:00
Karl Heuer
af92970ca9 (x_find_modifier_meanings): Skip zero entries. 1994-03-28 23:03:07 +00:00
Karl Heuer
abdda982d7 (x_window_to_scroll_bar, x_new_font): Use assignment, not initialization. 1994-03-25 00:42:47 +00:00
Karl Heuer
6f63ba7956 (dumpglyphs): Use the fast macros. 1994-03-19 02:51:37 +00:00
Karl Heuer
fb61ec09b7 (x_scroll_bar_expose): Don't make the right border thicker. 1994-03-15 01:25:19 +00:00
Fred Pierresteguy
82aebaf480 (XTread_socket): For case ClientMessage and Xatom_wm_delete_window, use
x_any_window_to_frame.
1994-02-28 12:57:12 +00:00
Fred Pierresteguy
13ce2d73e4 (XTread_socket): For case ConfigureNotify, call 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.
1994-02-25 09:29:20 +00:00
Richard M. Stallman
2b5c9e71c3 (construct_mouse_click): Don't convert to glyph units.
(XTmouse_position): Don't convert to glyph units.

(XTmouse_position): Use x_any_window_to_frame.
1994-02-24 06:22:23 +00:00
Richard M. Stallman
c8dba2407c (construct_menu_click): Undo previous change. 1994-02-22 00:43:04 +00:00
Richard M. Stallman
b849c41360 (x_had_errors_p): New function.
(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.
1994-02-21 21:54:33 +00:00
Richard M. Stallman
1dea5a8319 (XTread_socket--cases KeyPress, EnterNotify, LeaveNotify)
(cases FocusIn, FocusOut): Use x_any_window_to_frame.
1994-02-19 22:56:21 +00:00
Richard M. Stallman
df5a440b3b (dumpglyphs): Try various alternatives for foreground color
of a glyph with the cursor on it.
1994-02-18 01:01:51 +00:00
Richard M. Stallman
812361a197 Comment changes. 1994-02-17 23:33:02 +00:00
Richard M. Stallman
7071e5ddb7 (XTread_socket): Do not assume that select returning
immediately with no events implies a hangup.
1994-02-15 16:17:25 +00:00
Karl Heuer
7246d1d3aa (x_scroll_bar_create): Fix indentation. 1994-02-11 23:35:47 +00:00
Fred Pierresteguy
9d7e2e3eef (x_destroy_window) [USE_X_TOOLKIT]: Call free_frame_menubar. 1994-02-11 13:25:11 +00:00
Karl Heuer
f94397b551 (x_display_cursor, process_expose_from_menu): Block input. 1994-02-09 23:31:54 +00:00
Fred Pierresteguy
bc20ebbfef (x_make_frame_invisible): Add USE_X_TOOLKIT conditional. 1994-02-07 18:25:41 +00:00
Richard M. Stallman
502add23f1 (XTread_socket): Add X_IO_BUG conditional. 1994-02-02 23:47:57 +00:00
Karl Heuer
8c002a25f4 (x_iconify_frame): Fix misbalanced BLOCK_INPUT/UNBLOCK_INPUT. 1994-02-02 07:34:08 +00:00
Karl Heuer
8c86eccda4 (x_term_init): Use get_system_name instead of gethostname. 1994-02-02 06:32:28 +00:00
Richard M. Stallman
a07d4bc524 (dumpglyphs): Don't crash for invalid face code. 1994-02-01 06:49:18 +00:00
Fred Pierresteguy
80fd1fe20c (x_set_window_size): Add USE_X_TOOLKIT conditional. Call EmacsFrameSetCharSize and return. 1994-01-28 17:34:46 +00:00
Fred Pierresteguy
5c94b90b10 * xterm.c (x_term_init): Cast to (char **) before assignment to argv. 1994-01-28 14:28:51 +00:00
Richard M. Stallman
4466efa553 (x_set_mouse_position): Don't raise the frame. 1994-01-26 21:09:54 +00:00