1. 31 Oct, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_convert_modifiers): Declare this to return an · 7c5283e4
      Jim Blandy authored
      	unsigned int, not a Lisp_Object.  Remember that the quiescent
      	value for part is Qnil, not zero, that x_mouse_x and x_mouse_y
      	are ints, not Lisp_Objects, and that RESULT->x and RESULT->y are
      	Lisp_Objects, not ints.
      	(XTread_socket): Declare this to return int, not Lisp_Object.
      	When calling construct_mouse_click on a non-scrollbar click, pass
      	PART as Qnil, not zero.
      	(x_calc_absolute_position): Remember that x_screen_width and
      	x_screen_height are ints, not Lisp_Objects.
      e
      7c5283e4
  2. 19 Oct, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (compose_status): New variable. · 11edeb03
      Jim Blandy authored
      	(XTread_socket): Pass it by reference to XLookupString.
      
      	* xterm.c: Clean up some of the caps lock handling:
      	(x_shift_lock_mask): New variable.
      	(x_find_modifier_mappings): Set it, based on the modifier mappings.
      	(x_convert_modifiers): Use x_shift_lock_mask, instead of assuming
      	that the lock bit always means to shift the character.
      	(XTread_socket): When handling KeyPress events, don't pass an
      	XComposeStatus structure along to XLookupString.  When handling
      	MappingNotify events, call XRefreshKeyboardMapping for both
      	MappingModifier and MappingKeyboard events, not just the latter.
      11edeb03
  3. 11 Oct, 1992 1 commit
  4. 03 Oct, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_find_modifier_meanings): If there are no · f689eb05
      Jim Blandy authored
      	modifiers containing a Meta_ keysym, use the Alt keysyms to
      	denote meta.
      	(construct_mouse_click): Set the down_modifier bit on mouse
      	button press events.
      	(XTread_socket): When processing keypress events, use
      	x_meta_mod_mask when processing ordinary ASCII characters, not
      	just when processing function keys and other non-ASCII events.
      	(XTread_socket): If we receive a MappingNotify event with the
      	`request' member set to `MappingModifier', then call
      	x_find_modifier_meanings to refresh x_meta_mod_mask.
      f689eb05
  5. 30 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_meta_mod_mask): New variable, indicating which X · 28430d3c
      Jim Blandy authored
      	modifier bits denote meta keys.
      	(x_find_modifier_meanings): New function, to set x_meta_mod_mask.
      	(x_convert_modifiers): Use that.
      	(x_term_init): Call x_find_modifier_meanings.
      
      	* xterm.c (XTread_socket): Pass PropertyNotify events from the
      	root window to x_invalidate_cut_buffer_cache.
      	(x_term_init): Call x_watch_cut_buffer_cache here.
      28430d3c
  6. 13 Sep, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_wm_set_size_hint): Set the base_width and base_height · b0342f17
      Jim Blandy authored
      	members of size_hints, if they're available (X11R4 and after);
      	otherwise, approximate the right thing, by using min_width and
      	min_height as the base size.
      
      	* xterm.c (x_catch_errors): Don't forget to initialize
      	x_caught_error_message to the null string, so x_check_errors can
      	tell when an error has occurred.
      b0342f17
  7. 04 Sep, 1992 1 commit
  8. 29 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_make_frame_invisible): Don't forget to check the · c118dd06
      Jim Blandy authored
      	return value of XWithdrawWindow; it could indicate that the window
      	wasn't successfully redrawn.
      
              * xterm.c (x_make_frame_invisible): Use XWithdrawWindow when
      	available [HAVE_X11R4]; send the UnmapNotify event when
      	appropriate [HAVE_X11]; just unmap the window if that's all that's
      	needed [not HAVE_X11].
      
      	* xterm.c (x_set_text_property): Removed; it's only called from
      	one place.  Who wants *another* layer of indirection?
      
      	* xterm.c: Use the FRAME_X_WINDOW macro, for readability.
      
      	* xterm.c (x_death_handler): Renamed to x_connection_closed.
      	(x_term_init): Use x_connection_closed as the SIGPIPE handler.
      
      	* xterm.c (acceptable_x_error_p, x_handler_error_gracefully,
      	x_error_handler): Removed; you can't catch X errors this way,
      	since you can't perform X operations from within an X error
      	handler, and even though we call error, we're still within an X
      	error handler.
      	(x_error_quitter, x_error_catcher): New functions, for panicking
      	on and catching X protocol errors.
      	(x_caught_error_message): Buffer for caught X errors.
      	(x_catch_errors, x_check_errors, x_uncatch_errors): New functions
      	for catching errors.
      	(x_term_init): Set the error handler to x_error_quitter, rather
      	than x_error_handler.
      
      	* xterm.c (x_death_handler): Renamed to x_connection_closed.
      	(x_term_init): Use x_connection_closed as the SIGPIPE handler.
      
      	* xterm.c (acceptable_x_error_p, x_handler_error_gracefully,
      	x_error_handler): Removed; you can't catch X errors this way,
      	since you can't perform X operations from within an X error
      	handler, and even though we call error, we're still within an X
      	error handler.
      	(x_error_quitter, x_error_catcher): New functions, for panicking
      	on and catching X protocol errors.
      	(x_caught_error_message): Buffer for caught X errors.
      	(x_catch_errors, x_check_errors, x_uncatch_errors): New functions
      	for catching errors.
      	(x_term_init): Set the error handler to x_error_quitter, rather
      	than x_error_handler.
      c118dd06
  9. 19 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_wm_hints): Variable deleted. This has to be · 16bd92ea
      Jim Blandy authored
      	per-screen.  Duh.
      	* xterm.c (x_wm_set_window_state, x_wm_set_icon_pixmap,
      	x_wm_set_icon_position): Use F->display.x->wm_hints, rather than
      	x_wm_hints.
      	(x_term_init): Don't initialize x_wm_hints here.
      	* xterm.c (x_set_text_property): Properly balance the BLOCK_INPUTs
      	and UNBLOCK_INPUTs.  And remember that VALUE is the strin we want
      	to set the name to, not PROPERTY.
      
      	* xterm.c (x_set_text_property): Define this appropriately for
      	X11R3 and X11R4.
      
      	* xterm.c (x_set_text_property): Make this take a Lisp_Object
      	string as an argument, rather than a pointer and a length.
      
      	* xterm.c: Doc fixes.
      
      	* xterm.c [USG5]: Don't include <sys/types.h>.
      
      	* xterm.c (x_make_frame_invisible): Instead of calling XWithdraw
      	window, which isn't widely available, write out what it does,
      	since that's not much.
      	(x_iconify_frame): Explicitly perform both the X11R3 and X11R4
      	methods for iconification; don't use XIconifyWindow, since that's
      	not present in R3.
      
      	* xterm.c (x_wm_set_size_hint): Don't bother setting the
      	base_width and base_height members; their function is performed
      	just as well by the min_width and min_height members, and if we
      	use XSetNormalHints instead of XSetWMNormalHints, we can be
      	compatible with R3.
      
      	* xterm.c (x_error_handler): There is no way to invoke the default
      	error handler which works on all versions of X11, so don't bother;
      	call XGetErrorText and print the message ourselves.
      
      	* xterm.c (x_term_init): Don't use MAXHOSTNAMELEN; this isn't
      	defined on all systems.  Since we only use that as an initial
      	guess anyway, it's not very important.
      
      	* xterm.c (x_set_text_property): New function.
      16bd92ea
  10. 12 Aug, 1992 1 commit
    • Jim Blandy's avatar
      * xterm.c (x_wm_hints): New variable. · b1c884c3
      Jim Blandy authored
      	(x_wm_set_window_state, x_wm_set_icon_pixmap,
      	x_wm_set_icon_position): Use x_wm_hints.
      	(x_term_init): Set the `input' field of x_wm_hints, and its flag.
      
      	* xterm.c (x_text_icon): Call x_wm_set_icon_pixmap with a pixmap
      	of zero, to clear the pixmap.
      	(x_wm_set_icon_pixmap): Accept this protocol; if pixmap is zero,
      	specify no pixmap for the icon.
      
      	* xterm.c (x_set_window_size): Call check_frame_size to make sure
      	that the requested dimensions are within acceptable limits.
      	Store the new size information in the frame structure.
      
      	* xterm.c (x_wm_set_size_hint): Don't try to set the base_height
      	and base_width elements of size_hints if PBaseSize is not
      	#defined.  Set the minimum frame size according to the information
      	returned by check_frame_size.
      
      	* xterm.c (XTread_socket, x_do_pending_expose): Call
      	change_frame_size with a DELAY of 1.
      
      	* xterm.c (in_display): Deleted this; it's never used in xterm.c,
      	and there is another variable by the same name in dispnew.c.
      
      	* xterm.c (FRAME_IS_TERMCAP, FRAME_IS_X, FRAME_HAS_MINIBUF):
      	Renamed these to FRAME_TERMCAP_P, FRAME_X_P, and
      	FRAME_HAS_MINIBUF_P, for consistency with the rest of the
      	frame macros.
      b1c884c3
  11. 15 Jul, 1992 1 commit
  12. 14 Jul, 1992 1 commit
  13. 10 Jul, 1992 1 commit
  14. 07 Jul, 1992 1 commit
  15. 30 Jun, 1992 1 commit
  16. 24 Jun, 1992 1 commit
  17. 10 Jun, 1992 1 commit
  18. 12 May, 1992 1 commit
  19. 24 Apr, 1992 1 commit
  20. 21 Feb, 1992 1 commit
  21. 28 Jan, 1992 1 commit
  22. 13 Jan, 1992 1 commit
  23. 08 Nov, 1991 1 commit
  24. 16 Aug, 1991 1 commit
  25. 15 Aug, 1991 1 commit
  26. 31 Jul, 1991 1 commit
  27. 03 Jul, 1991 1 commit
  28. 25 May, 1991 1 commit