Kenichi Handa
09c6077fa6
(x_list_fonts): If SIZE is zero and MAXNAMES is 1, use
...
XLoadQueryFont instead of XListFonts.
(x_load_fonts): Call x_list_fonts with MAXNAMES 1.
1998-06-16 07:32:05 +00:00
Richard M. Stallman
852bff8fd8
(XTread_socket): Accept Japanese XK keysyms.
1998-06-09 01:55:49 +00:00
Richard M. Stallman
c99babf20d
(XTread_socket): Fix second argument of x_any_window_to_frame.
1998-05-25 16:03:58 +00:00
Andreas Schwab
ae79c227e8
Include syssignal.h after lisp.h.
1998-05-04 09:25:21 +00:00
Richard M. Stallman
dbcb258a89
(XTwrite_glyphs): Don't advance cursor X beyond limit.
...
(XTcursor_to): Likewise.
1998-05-02 06:39:39 +00:00
Richard M. Stallman
d6a1be6453
(x_display_cursor): Use FRAME_CURSOR_X_LIMIT.
1998-04-25 23:08:24 +00:00
Kenichi Handa
a65826769e
(x_find_ccl_program): New function.
1998-04-15 07:12:49 +00:00
Andreas Schwab
dfcf069d56
Fix -Wimplicit warnings.
1998-04-14 12:25:56 +00:00
Richard M. Stallman
fc932ac6c7
Use STRING_BYTES and SET_STRING_BYTES.
1998-03-21 07:06:14 +00:00
Richard M. Stallman
2132370622
(XTframe_up_to_date): Check that mouse_face_mouse_frame
...
is non-null before calling note_mouse_highlight.
(x_destroy_window): If f equals mouse_face_mouse_frame,
clear that, and clear mouse_face_deferred_gc too.
1998-03-02 18:53:21 +00:00
Richard M. Stallman
e361a3c34d
(x_load_font): Use string_byte.
1998-01-09 23:22:56 +00:00
Richard M. Stallman
045226c75c
(x_display_cursor): Abort if X or Y is out of range.
1997-12-21 01:59:49 +00:00
Kenichi Handa
5e8e68ceec
(x_make_frame_visible): Give dummy arg to
...
input_poll_signal.
1997-11-27 08:32:40 +00:00
Karl Heuer
8f08dc930c
(XTread_socket): Check for bogus (0,0) location.
1997-10-25 03:12:31 +00:00
Karl Heuer
8bcee03ecf
(XTmouse_position): Handle INSIST < 0.
1997-10-24 19:58:39 +00:00
Kenichi Handa
6b0efe7393
(x_list_fonts): Adjusted for the name change of
...
Valternate_fontname_alist.
1997-08-22 01:19:27 +00:00
Kenichi Handa
f64a355ce0
(dumpglyphs): Pay attention to
...
Vignore_relative_composition.
1997-08-10 04:13:19 +00:00
Kenichi Handa
9a32686f79
(x_list_fonts): Request at least 10 fonts by XListFonts.
1997-08-01 00:29:34 +00:00
Richard M. Stallman
536f4067ef
(x_list_fonts): Reject a font whose min_bounds.width is 0.
1997-07-31 16:44:49 +00:00
Richard M. Stallman
4e61bddf04
(x_new_font): Follow the change in x_set_scroll_bar_width and make the
...
scroll bar at least 14 pixels wide.
1997-07-28 18:33:11 +00:00
Richard M. Stallman
f8c39f5172
(x_term_init) [! HAVE_X11R5]: Don't try to use XtCvtStringToFont.
1997-07-28 15:10:21 +00:00
Richard M. Stallman
bf7253f4a2
(dumpglyphs): Check the dimension of FONT while
...
setting `byte1' and `byte2' members of *CP.
(XTread_socket): Trap the BadMatch error that can occur
after a XSetInputFocus if window is not visible.
1997-07-26 01:43:07 +00:00
Richard M. Stallman
8c1a6a84ca
(XTread_socket) <ClientMessage>:
...
For wm_take_focus, use x_any_window_to_frame.
Don't use FRAME_XIC if it is null, here.
(dumpglyphs): Use 8-bit output to X, rather than 16-bit,
if the character values permit that.
1997-07-20 17:44:22 +00:00
Richard M. Stallman
5c1aae96f9
(x_draw_box): Use scratch_cursor_gc to draw the cursor
...
box using the color specified by cursor_pixel.
1997-07-14 04:24:24 +00:00
Richard M. Stallman
b264791c6b
(dumpglyphs): Declare local variable first_ch as Lisp_Object, not int.
1997-07-12 06:35:22 +00:00
Richard M. Stallman
fe27f88d3a
(x_load_font): Get value of fontp->height from
...
ascent and descent members of structure font->max_bounds.
(dumpglyphs): Draw background by FillSolid if a font is too short.
1997-07-10 02:15:40 +00:00
Richard M. Stallman
5d7cc324ad
(x_term_init): Don't use initializer for null_bits.
...
(XTread_socket) <KeyPress>: Call XFilterEvent.
1997-07-10 02:13:26 +00:00
Kenichi Handa
1348f1a4fc
(x_list_fonts): Initialize the variable LIST to Qnil.
1997-07-07 00:59:44 +00:00
Richard M. Stallman
4d3f5d9ab7
(x_make_frame_visible): Don't move the frame
...
if it was iconified--only if it was invisible.
1997-07-05 08:23:34 +00:00
Richard M. Stallman
28c01ffe80
(x_make_frame_visible): Check has_been_visible
...
field before the UNBLOCK_INPUT.
1997-07-02 04:41:00 +00:00
Kenichi Handa
2da424f117
(dumpglyphs): Use FS_LOAD_FONT.
...
(x_new_fontset): If frame F has already using FONTSET, avoid the
duplicated work. Use FS_LOAD_FONT.
(x_list_fonts): Call Fassoc to search Valternate_charset_table.
(x_load_font): Get around a buf of XListFonts
1997-06-21 00:45:44 +00:00
Richard M. Stallman
f39db7eaf4
(x_list_fonts): fast_c_string_match_ignore_case renamed.
1997-06-09 17:58:49 +00:00
Kenichi Handa
97210f4e3f
(dumpglyph): Shift baseline for such a font that is
...
shorter but ascent or descent exceed the line height.
For a larger font, draw a small hook at right-bottom edge instead
of a rectangle.
1997-06-09 13:00:24 +00:00
Richard M. Stallman
06c488fde2
(process_expose_from_menu, XTread_socket):
...
Set has_been_visible field.
(x_make_frame_visible): Don't do XMoveWindow unles has_been_visible.
1997-05-31 07:37:09 +00:00
Richard M. Stallman
8ff102bda5
(x_load_font): Use macro FONT_ENCODING_NOT_DECIDED.
1997-05-31 02:03:43 +00:00
Richard M. Stallman
dcb07ae9dc
(XTread_socket) <ConfigureNotify>: Don't call
...
x_wm_set_size_hint if window has no parent yet.
Simplify the call to x_real_positions.
(x_make_frame_visible): Use win_gravity to decide whether to
call XMoveWindow. Also, don't do it if frame already visible.
1997-05-28 04:54:48 +00:00
Richard M. Stallman
1aa6072f7d
(XTread_socket) <UnmapNotify>: Don't make an inconify_event
...
when frame was made invisible.
(x_make_frame_visible): Put the call to x_set_offset back as it was.
Near the end, instead call XMoveWindow, but only if original
positions were not negative.
1997-05-27 03:09:37 +00:00
Richard M. Stallman
9829ddba7b
(x_make_frame_visible): Call x_set_offset only after
...
mapping the window and accepting input.
(x_calc_absolute_position): Do nothing if current position
is already for the top-left corner.
Handle errors in XTranslateCoordinates.
(XTread_socket): Simplify handling of ConfigureNotify events.
Always call x_wm_set_size_hint for them.
No need to call XTranslateCoordinates here.
(x_clear_errors): New function.
1997-05-26 06:22:15 +00:00
Kenichi Handa
ce667c3efe
(x_load_font): Set 4 instead of -1 in fontp->encoding[1]
...
for the meaning of `can't decided'.
1997-05-19 03:33:50 +00:00
Kenichi Handa
f613a4c856
(dumpglyphs): Draw glyphs one by one if the font for
...
them is narrower than required.
(x_connection_closed): Put # at the beginning of line.
(x_load_font): Cast to (char *) before assigning to FONTNAME.
1997-05-16 00:42:53 +00:00
Kenichi Handa
34910d41c1
(dumpglyphs): Even if font (not fontset) is used,
...
display Latin1 characters correctly if the font contains glyphs
for them. Fix bug of displaying cursor on a composite character.
1997-05-10 03:37:01 +00:00
Richard M. Stallman
e99db5a15c
(XTmouse_position, x_term_init):
...
Save value of x_catch_errors and pass to x_uncatch_errors.
(x_catch_errors): Use specpdl so can be nested.
Use a Lisp string to as the buffer for the X message.
(x_uncatch_errors, x_had_errors_p, x_check_errors): Related changes.
(x_catch_errors_unwind): New function.
(x_error_quitter): Call x_error_catcher if appropriate.
(x_error_message_string): New variable.
(syms_of_xterm): Defvar it.
(x_caught_error_message): Variable deleted.
(X_ERROR_MESSAGE_SIZE): Renamed from X_CAUGHT_ERROR_MESSAGE_SIZE.
(x_error_handler): New function, calls x_error_quitter or ..._checker.
(x_initialize): Use x_error_handler as error handler for X.
1997-05-01 01:57:25 +00:00
Richard M. Stallman
df89d8a469
Fix previous change.
1997-04-27 16:34:19 +00:00
Richard M. Stallman
0c49ce2f28
(x_destroy_window): Free saved_menu_event, if any.
1997-04-27 03:32:14 +00:00
Richard M. Stallman
e73ec6fa92
(x_set_offset): Turn off the code that added the border_width
...
to modified_left and modified_top; it seems incorrect to do that.
1997-04-20 22:14:53 +00:00
Karl Heuer
26459b28a9
(construct_menu_click, note_mouse_highlight, fast_find_position):
...
Fix Lisp_Object/integer confusion.
1997-04-10 22:25:45 +00:00
Kenichi Handa
57b03282a0
(dumpglyphs): Clip and highlight glyphs displayed with
...
fonts of wrong size.
1997-04-07 07:12:13 +00:00
Richard M. Stallman
441affdb50
(XTread_socket): Accept XK_ISO_* keys.
1997-03-22 23:59:53 +00:00
Richard M. Stallman
1097aea030
(XTread_socket): Handle ISO_Left_Tab.
1997-03-22 04:21:00 +00:00
Kenichi Handa
b5210ea72e
(dumpglyphs): Set a clipping region when we draw glyphs
...
with a font of inappropriate size.
(x_list_fonts): Try alternate fonts if we can't find a font of an
appropriate size.
1997-03-19 16:33:48 +00:00