summaryrefslogtreecommitdiff
path: root/src/xterm.c
Commit message (Collapse)AuthorAgeFilesLines
* [HAVE_X11XTR6]: Include locale.hKarl Heuer1995-07-171-40/+58
| | | | | | | | | (x_term_init) [HAVE_X11XTR6]: Set LC_NUMERIC and LC_TIME back to C. (note_mouse_movement): Set mouse_moved in the x_display_info. (XTmouse_position, x_scroll_bar_note_movement): Likewise. (x_scroll_bar_report_motion): Likewise. (x_draw_box, x_display_box_cursor, x_display_bar_cursor): New args x, y. Don't use curs_x or curs_y here. Callers changed.
* (x_initialize) [USE_X_TOOLKIT]: Set fallback resources.Richard M. Stallman1995-07-071-0/+6
|
* (XTread_socket): Turn off meta, super, hyper and alt bitsRichard M. Stallman1995-06-291-18/+44
| | | | | | | | | | in the arg for XLookupKey. (x_display_bar_cursor, x_display_box_cursor): Don't alter curs_x or curs_y here. (x_display_cursor): Copy them from the frame cursor here. (x_update_cursor): New function. (frame_highlight, frame_unhighlight): Use x_update_cursor.
* (x_make_frame_visible): Test and set asked_for_visible.Karl Heuer1995-06-111-1/+43
|
* Include widget.h.Karl Heuer1995-06-111-20/+45
| | | | | | (x_wm_set_size_hint) [USE_X_TOOLKIT]: Get the size from the outer widget. Copy the base and minimum sizes from the old hint.
* (x_get_keysym_name): New function.Karl Heuer1995-06-091-5/+23
|
* (x_wm_set_icon_pixmap): Set IconPixmapHint in both cases.Karl Heuer1995-06-051-5/+2
|
* (x_text_icon): Do call XSetIconName or XSetWMIconName.Karl Heuer1995-06-051-11/+19
| | | | Don't save ICON_NAME anywhere.
* (XTread_socket) [USE_X_TOOLKIT]: Do pass MotionNotify eventsKarl Heuer1995-05-291-5/+0
| | | | to the toolkit.
* (x_term_init): Block input during this function.Karl Heuer1995-05-291-1/+8
|
* (x_term_init): Call init_sigio only if interrupt_input.Karl Heuer1995-05-291-1/+2
|
* (x_set_offset): Distinguish CHANGE_GRAVITY < 0 case.Karl Heuer1995-05-291-3/+4
|
* (XTread_socket): Don't call popup_get_selection here.Karl Heuer1995-05-261-0/+3
|
* (XTread_socket): For MapNotify, call record_asynch_buffer_change.Karl Heuer1995-05-251-0/+5
|
* (XTflash): Use pointers as args to select.Karl Heuer1995-05-251-8/+9
| | | | | | | | | (XTread_socket, x_set_offset, x_set_window_size) (x_make_frame_invisible): Cast 2nd arg to x_wm_set_size_hint. (XTclear_end_of_line): Don't specify return type. (note_mouse_highlight): Declare args x and y. (x_icon_type): New declaration. (flashback): Declaration deleted.
* (x_connection_closed): Unblock input, first thing.Karl Heuer1995-05-241-1/+11
| | | | | Set Vdefault_minibuffer_frame to t before deleting a frame that might have its own minibuffer.
* (x_set_offset): Add border_width when calling XMoveWindow.Karl Heuer1995-05-241-2/+14
|
* (x_calc_absolute_position): Use menubar_height field.Karl Heuer1995-05-241-3/+10
| | | | | In toolkit case, use outermost Emacs widget and its parent. [USE_X_TOOLKIT] (x_make_frame_visible): Do call x_set_offset.
* (Qvendor_specific_keysyms): New var.Karl Heuer1995-05-131-3/+13
| | | | | (syms_of_xterm): Initialize and staticpro it. (x_term_init): Initialize Vsystem_key_alist according to vendor.
* (x_term_init): Add stub to initialize Vsystem_key_alist.Karl Heuer1995-04-291-0/+3
|
* (x_term_init): If the previous kboard was the dummy one,Karl Heuer1995-04-241-0/+5
| | | | switch to the new one immediately.
* (x_focus_frame, x_focus_event_frame, x_highlight_frame):Karl Heuer1995-04-241-78/+71
| | | | | | | | | | | | | | | | | Delete these vars; now part of struct x_display_info. (x_new_focus_frame): New arg DPYINFO. Callers changed. Use the struct members instead of the globals. Call x_frame_rehighlight instead of XTframe_rehighlight, so we can pass on the dpyinfo pointer. (x_mouse_leave): New arg DPYINFO. Callers changed. (XTframe_rehighlight): New arg FRAME. Callers changed. Now does all the work in x_frame_rehighlight. (x_frame_rehighlight): New function, code from XTframe_rehighlight. (XTread_socket): Use the struct members instead of the globals. (x_unfocus_frame, x_iconify_frame, x_destroy_window): Likewise. (x_display_box_cursor, x_make_frame_invisible): Likewise. (x_term_init): Initialize the struct members. (x_initialize): Delete initialization of deleted globals.
* (x_term_init): Call XtSetLanguageProc only if HAVE_X11XTR6.Richard M. Stallman1995-04-141-51/+46
| | | | | | | | (XTread_socket): Pass dpyinfo to popup_get_selection. (XTread_socket): For ConfigureNotify, combine the USE_X_TOOLKIT and non-toolkit cases, which provides some things that were missing in the former.
* (XTread_socket): Pass dpyinfo to popup_get_selection.Richard M. Stallman1995-04-111-1/+1
|
* (XTread_socket): Make deiconify event only if frame was iconified.Richard M. Stallman1995-04-101-5/+8
|
* (dumpglyphs): Cast FACE_DEFAULT to (XFontStruct *)Richard M. Stallman1995-04-071-2/+2
| | | | for comparison with face->font.
* Update copyright.Karl Heuer1995-04-071-1/+1
|
* New arg DPYINFO to all callers of x_window_to_frame, x_any_window_to_frame,Karl Heuer1995-04-031-29/+38
| | | | and x_top_window_to_frame.
* (x_delete_display): Extract kboard deletion, for modularity.Karl Heuer1995-03-311-10/+1
|
* (x_term_init): Initialize cut_buffers_initialized.Karl Heuer1995-03-311-1/+3
|
* (XTmouse_position): New arg `insist'.Richard M. Stallman1995-03-261-2/+7
|
* (get_perdisplay): Deleted.Karl Heuer1995-03-151-27/+54
| | | | | | | | (same_x_server): New function. (x_term_init): If this display shares a keyboard with one we've already opened, then share the structure. (x_delete_display): Don't delete the kboard until the reference count becomes zero.
* (x_connection_closed): Ignore non-X frames.Richard M. Stallman1995-03-061-3/+6
| | | | | Fix the logic for deleting frames that use separate minibuffers that are on the dead connection.
* (x_bitmap_icon): Fix test for unallocated icon bitmap.Paul Reilly1995-02-141-1/+1
|
* (x_display_bar_cursor): Use frame's cursor_width.Richard M. Stallman1995-02-141-2/+15
| | | | | (x_connection_signal): New function. (x_initialize): Use it as signal handler.
* [MULTI_PERDISPLAY] (x_term_init): Initialize perdisplay.Karl Heuer1995-02-041-3/+20
| | | | | [MULTI_PERDISPLAY] (x_delete_display): Destroy perdisplay. (x_delete_display): Use xfree, not free.
* (x_unqueue_events): Arg is now a Display *.Richard M. Stallman1995-02-021-8/+8
| | | | | (x_start_queuing_selection_requests): Likewise. (x_stop_queuing_selection_requests): Likewise.
* [MULTI_PERDISPLAY] (get_perdisplay): Define this as an exported function.Karl Heuer1995-01-311-0/+13
|
* (x_destroy_window): Don't let frame being destroyed remain inRichard M. Stallman1995-01-251-2/+4
| | | | x_focus_event_frame.
* Don't include param.h.Richard M. Stallman1995-01-081-1/+2
|
* (x_scroll_bar_handle_click): Use GC_WINDOWP.Richard M. Stallman1994-12-301-23/+22
| | | | (XTframe_rehighlight, x_window_to_scroll_bar): Use GC_FRAMEP.
* (XTupdate_begin): Fix backward test in previous change.Richard M. Stallman1994-12-271-3/+13
| | | | | | | | (x_display_box_cursor): Don't redraw old cursor spot in mouse face if cursor was on a newline. (XTread_socket): Handle button events from outside the frame, received due to grabbing the mouse with a button.
* (XTupdate_begin): Discard records of prior mouse highlightRichard M. Stallman1994-12-231-8/+21
| | | | | | | | | | | | when frame must be redrawn. (x_make_frame_visible, x_make_frame_invisible) (x_iconify_frame): Give error if frame has explicit_parent. (x_new_font): Don't set window height if frame has explicit_parent. (x_mouse_leave): New function broken out of XTread_socket. When x_focus_event_frame is nonzero, assume that frame gets focus. (XTread_socket): Use x_mouse_leave for LeaveNotify.
* (XTread_socket): Generate iconify and deiconify events.Karl Heuer1994-11-041-0/+12
|
* (XTclear_end_of_line): Finish the line dance here too, just as was done inKarl Heuer1994-11-011-0/+2
| | | | XTwrite_glyphs.
* (fast_find_position): Special case if POS is end of buffer.Richard M. Stallman1994-11-011-0/+17
|
* (x_delete_display): Call XrmDestroyDatabase.Richard M. Stallman1994-10-291-106/+50
| | | | | | | | | | | | | | | | | (x_destroy_window): Rewrite to fetch dpyinfo just once. [USE_X_TOOLKIT]: Make application context explicitly and support multiple top-level shells. (x_initialize): Call XtToolkitInitialize, XtCreateApplicationContext; don't open display or make a shell. (x_term_init): Call XtOpenDisplay. (x_scroll_bar_create): Use XMapRaised directly. (x_make_frame_visible, x_iconify_frame): Likewise. (XMapWindow): Macro definition deleted. (METABIT): Macro deleted. (MAXDESC, FD_SETSIZE, FD_SET, FD_CLEAR, FD_ZERO, FD_ISSET): Likewise. (x_id_name): Variable deleted.
* (x_catch_errors, x_check_errors, x_had_errors_p)Richard M. Stallman1994-10-261-854/+918
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | (x_uncatch_errors): Make the argument a display, not a frame. (XTread_socket_fake_io_error): New variable. (XTread_socket): Obey XTread_socket_fake_io_error. (x_initialize): Init x_noop_count, x_focus_frame and x_highlight_frame here. (x_term_init): Not here. (x_term_init): Open the connection first thing; if that fails, don't allocate dpyinfo. (x_delete_display): New function. (x_connection_closed): New args dpyinfo and error_message. Delete all frames on the dead display and all frames using them for minibuffers. Call x_delete_display. Maybe signal a Lisp error. (x_term_init): Don't report error here--just return 0. (x_scroll_bar_report_motion): Store proper value in *bar_window (the Emacs window, not the X window number). (x_scroll_bar_report_motion): Don't clear *fp. (x_wm_set_icon_pixmap): Use x_bitmap_pixmap. (show_mouse_face): New arg dpyinfo. All callers changed. (clear_mouse_face): New arg dpyinfo. All callers changed. (scratch_cursor_gc): Variable deleted. (dumpglyphs): Use scratch_cursor_gc in x_display_info. (syms_of_xterm): Don't staticpro mouse_face_window. (expose_all_windows, expose_all_icons): Variables deleted. (BLOCK_INPUT_mask): Variable deleted. (x_term_init): Set up x_id_name field. (x_id_name): Variable deleted. (x_font_table, x_font_table_size, x_n_fonts): Vars deleted. (x_new_font): Use new fields. (warp_mouse_on_deiconify): Unused variable deleted. (x_term_init): Set up dpyinfo->xrdb. Set up dpyinfo->vertical_scroll_bar_cursor. (x_scroll_bar_create): Use vertical_scroll_bar_cursor slot. (x_vertical_scroll_bar_cursor): Variable deleted. (x_term_init): Really return dpyinfo. (x_term_init): Call add_keyboard_wait_descriptor, not change_keyboard_wait_descriptor. (x_term_init): Pass new arg to init_sigio. Don't set old_fcntl_owner. Don't call change_input_fd. (XTread_socket): Loop over displays and process input from each. (x_display_name_list): New variable. (syms_of_xterm): staticpro it. Don't staticpro slots in the_x_screen. (x_term_init): Update x_display_name_list along with x_display_list. Actually malloc the x_display_info. (the_x_screen): Variable deleted.
* 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
|