summaryrefslogtreecommitdiff
path: root/src/xterm.c
Commit message (Collapse)AuthorAgeFilesLines
* Use FRAME_X_DISPLAY instead of x_current_display and XDISPLAY.Richard M. Stallman1994-10-221-325/+407
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (x_make_frame_visible, x_make_frame_invisible): Pass a frame ptr to x_sync. (x_term_init): Init all the components of dpyinfo. (x_display_info_for_display): New function. (x_*_mod_mask): Variables deleted. (x_x_to_emacs_modifiers, x_emacs_to_x_modifiers): New arg dpyinfo; all callers changed. Store the masks in that structure. (icon_bitmap): Variable deleted. (x_bitmap_icon): Use icon_bitmap_id in x_display_info. (icon_font_info): Variable deleted. (x_term_init): Set up `connection' field. (x_find_modifier_meanings): Arg is now struct x_display_info *. (x_term_init): Return an x_display_info *. Store all the data in it, including X atoms and xrdb. Put the x_display_info structure on x_display_list. Pass name as Lisp_Object. (the_x_screen): Variable moved here. (syms_of_xterm): Staticpro parts of the_x_screen. (windowinfo): Variable deleted. (Xatom_*): Variables deleted. (x_iconify_frame, XTread_socket): Get atoms from the x_display_info, (XTread_socket): Don't update Vmouse_depressed. (x_mouse_grabbed): Variable deleted. (note_mouse_highlight): Use grabbed field instead. (XTmouse_position, XTread_socket): Likewise. (x_calc_absolute_position, x_wm_set_size_hint): Get screen height, width from the x_display_info structure.
* (do_line_dance): Decrement index only once per loop.Karl Heuer1994-10-181-1/+1
|
* *** empty log message ***Morten Welinder1994-10-171-0/+3
|
* (dumpglyphs): Explicitly draw background stipple.Richard M. Stallman1994-10-171-13/+58
| | | | | | | | (x_bitmap_icon): Arg FILE is now a Lisp_Object. (x_iconify_frame, x_make_frame_visible): Supply FILE arg to it. (x_bitmap_icon): Properly discard the previous bitmap. (x_text_icon): Discard bitmap only if we have one.
* (x_bitmap_icon): Allow bitmap to come from file.Richard M. Stallman1994-10-151-16/+29
| | | | | | (x_wm_set_icon_pixmap): Second arg is now pixmap_id; call x_lookup_pixmap. (x_text_icon): Call x_destroy_bitmap.
* (stuffline, scraplines): Functions deleted.Karl Heuer1994-10-151-136/+163
| | | | | | | (line_dance, line_dance_len, line_dance_in_progress): New vars. (XTins_del_lines): Don't do any X calls; just update the array. (do_line_dance): New function. Do the X calls here. (XTupdate_end, XTwrite_glyphs): Call do_line_dance.
* (x_new_font): Don't keep looping after the FONT property.Richard M. Stallman1994-10-141-0/+2
|
* (x_term_init): Call XtSetLanguageProc or XSetLocaleModifiers.Richard M. Stallman1994-10-111-3/+15
| | | | | (x_make_frame_visible, x_iconify_frame): Call x_bitmap_icon if frame wants a bitmap icon.
* (construct_mouse_click): Don't use XFASTINT as an lvalue.Karl Heuer1994-10-041-2/+2
|
* (x_new_focus_frame, construct_mouse_click, construct_menu_click,Karl Heuer1994-10-041-44/+43
| | | | | | | | note_mouse_highlight, XTmouse_position, x_scroll_bar_create, x_scroll_bar_set_handle, x_scroll_bar_move, XTset_vertical_scroll_bar, XTredeem_scroll_bar, x_scroll_bar_handle_click, x_scroll_bar_note_movement, x_scroll_bar_report_motion, XTread_socket, x_make_frame_visible): Use new accessor macros instead of calling XSET directly.
* (input_signal_count): New variable.Richard M. Stallman1994-10-041-5/+32
| | | | | (XTread_socket): Increment it. (x_make_frame_visible): Exit final loop when XTread_sockets has run.
* (XTread_socket): Use popup_get_selection() for X11 menubar event handling.Paul Reilly1994-10-021-4/+4
|
* (x_new_font): New rule for computing column width. Factored out common code.Karl Heuer1994-09-281-13/+18
| | | | | (XTset_vertical_scroll_bar): Use new width formula. [!USE_X_TOOLKIT] (x_set_window_size): Likewise.
* (x_scroll_bar_clear): Use type test macros.Karl Heuer1994-09-271-2/+1
|
* (x_destroy_window): Decrement ref count of x_screen struct.Richard M. Stallman1994-09-231-0/+6
|
* (note_mouse_highlight): Pass new arg to overlays_at.Richard M. Stallman1994-09-211-3/+24
|
* * xterm.c (x_new_font): Compute number of scrollbar columns.Karl Heuer1994-09-201-4/+12
|
* Add #include "intervals.h"Karl Heuer1994-09-171-0/+1
|
* Delete X11 conditionals.Richard M. Stallman1994-09-161-870/+16
| | | | | | | | | | | | (XTupdate_end, XTupdate_begin, XTclear_end_of_line) (XTclear_frame, XRINGBELL, stufflines, scraplines, dumprectangle) (XTread_socket, x_draw_box, clear_cursor, refreshicon, x_iconify_frame) (x_bitmap_icon, x_text_icon, x_new_font, x_term_init) (x_calc_absolute_position, x_set_window_size) (x_make_frame_visible, x_make_frame_invisible): Delete X10 code. (dumpqueue, x_do_pending_expose, dumpborder, XEvent, x_read_exposes) (enqueue_event, dequeue_event, queue_event_count) (mouse_event_pending_p, x_set_resize_hint): Delete X10 versions.
* Comment fix.Richard M. Stallman1994-09-101-1/+1
|
* (x_make_frame_visible): Call input_polling_used.Richard M. Stallman1994-09-011-1/+1
|
* Include keyboard.h.Richard M. Stallman1994-08-281-6/+8
| | | | | (x_make_frame_visible): Fix previous change: test polling_for_input instead of whether SIGIO is defined.
* (x_make_frame_visible): Call signal handler directly.Karl Heuer1994-08-261-3/+8
|
* (x_make_frame_visible): Raise a signal to cause the pending X I/O to be read.Karl Heuer1994-08-241-11/+5
|
* (x_make_frame_visible): Quit if requested, in loop at end.Richard M. Stallman1994-08-191-0/+1
|
* (x_new_font): Don't set filename = full_name if that's null.Richard M. Stallman1994-08-121-1/+2
|
* (XTread_socket): Don't test X_IO_BUG; make that code unconditional.Richard M. Stallman1994-08-081-8/+2
| | | | (x_noop_count, x_term_init): Likewise.
* (x_make_frame_visible): Start one_in_four at 1.Richard M. Stallman1994-08-031-1/+1
|
* (construct_mouse_click, construct_menu_click):Richard M. Stallman1994-08-031-32/+17
| | | | | | | Don't update x_mouse_grabbed, Vmouse_depressed, last_mouse_frame here. (XTread_socket): Update them here, so we do it without fail. (XTmouse_position, XTread_socket case MotionNotify): Check last_mouse_frame is nonzero before using it.
* (x_queue_event, x_unqueue_events): New functions.Richard M. Stallman1994-07-271-15/+79
| | | | | | (x_start_queuing_selection_requests): New function. (x_stop_queuing_selection_requests): New function. (XTread_socket): Queue up SelectionRequest events sometimes.
* (struct font_info): New field full_name.Richard M. Stallman1994-07-191-2/+28
| | | | (x_new_font): Record, and return, the full name of the font.
* (note_mouse_movement): Use proper data type for windowRichard M. Stallman1994-07-181-4/+8
| | | | | args to XQueryPointer. (x_scroll_bar_note_movement): Likewise.
* (XTread_socket, construct_menu_click) [USE_X_TOOLKIT]:Richard M. Stallman1994-07-071-4/+28
| | | | | | | Update x_mouse_grabbed and Vmouse_depressed. (x_make_frame_visible): In x_sync loop at the end, every fourth time, sleep for 1/4 second.
* (x_draw_box): Use curs_x and curs_y, not f->cursor_[xy].Richard M. Stallman1994-07-011-3/+16
| | | | | (x_make_frame_visible): In x_sync loop at the end, every fourth time, sleep for 1/4 second.
* Don't include string.h or strings.h.Richard M. Stallman1994-06-231-5/+0
|
* (show_mouse_face): Set endcolumn ok in side-by-side windows.Richard M. Stallman1994-06-211-1/+1
|
* (make_frame_visible): At end, wait till Emacs sees frame is visible.Richard M. Stallman1994-06-181-0/+11
|
* (scratch_cursor_gc): New variable.Richard M. Stallman1994-06-171-13/+17
| | | | | (dumpglyphs): Rework handling of GCs for cursor display to use scratch_cursor_gc, and reuse the GC more.
* (x_noop_count): New variable.Richard M. Stallman1994-06-151-4/+23
| | | | | (x_term_init) [X_IO_BUG]: Init it. (XTread_socket) [X_IO_BUG]: Don't do XNoOp every time, just 1 in 100.
* (x_term_init): Don't call get_system_name.Karl Heuer1994-06-151-5/+5
|
* Put stdio.h after config.h.Richard M. Stallman1994-06-151-3/+4
| | | | (XTread_socket): Use x_top_window_to_frame in prev change.
* (XTread_socket): Handle Xatom_wm_save_yourself by calling XSetCommand.Richard M. Stallman1994-06-131-0/+15
|
* (x_wm_set_icon_position, x_wm_set_icon_pixmap):Richard M. Stallman1994-06-051-0/+8
| | | | [USE_X_TOOLKIT]: Use top-level widget's window.
* (x_term_init): New args xrm_option and resource_string.Richard M. Stallman1994-06-051-7/+15
| | | | Pass an -xrm option to XtAppInitialize if appropriate.
* (x_iconify_frame): Call x_set_offset,Richard M. Stallman1994-05-281-2/+16
| | | | | | | if x_make_frame_visible would do so. (x_make_frame_visible): Don't call x_set_offset if frame is iconic. (XTread_socket): For ConfigureNotify, if wm decorations exist, set NorthWestGravity.
* (x_is_vendor_fkey): Function deleted.Richard M. Stallman1994-05-271-21/+2
| | | | | (XTread_socket, case KeyPressed): Don't clear the vendor-specific bit. Pass thru almost any vendor-specific keysym.
* (note_mouse_movement): Use frame's window in XQueryPointer.Richard M. Stallman1994-05-251-9/+30
| | | | | Special case if mouse isn't on that window. (note_mouse_highlight): Handle negative args and too-large args.
* (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
|