changeset 12172:58ce63f11008

(x_get_keysym_name): New function.
author Karl Heuer <kwzh@gnu.org>
date Fri, 09 Jun 1995 19:15:28 +0000
parents 1d5d8a256d88
children f31fca0fcdb0
files src/xterm.c
diffstat 1 files changed, 23 insertions(+), 5 deletions(-) [+]
line wrap: on
line diff
--- a/src/xterm.c	Fri Jun 09 16:00:45 1995 +0000
+++ b/src/xterm.c	Fri Jun 09 19:15:28 1995 +0000
@@ -1629,6 +1629,21 @@
 	  | ((state & ctrl_modifier)	? ControlMask      : 0)
 	  | ((state & meta_modifier)	? dpyinfo->meta_mod_mask  : 0));
 }
+
+/* Convert a keysym to its name.  */
+
+char *
+x_get_keysym_name (keysym)
+     KeySym keysym;
+{
+  char *value;
+
+  BLOCK_INPUT;
+  value = XKeysymToString (keysym);
+  UNBLOCK_INPUT;
+
+  return value;
+}
 
 /* Mouse clicks and mouse movement.  Rah.  */
 
@@ -4941,7 +4956,7 @@
 #endif /* not USE_X_TOOLKIT */
 }
 
-/* Mouse warping, focus shifting, raising and lowering.  */
+/* Mouse warping.  */
 
 void
 x_set_mouse_position (f, x, y)
@@ -4979,6 +4994,8 @@
 		0, 0, 0, 0, pix_x, pix_y);
   UNBLOCK_INPUT;
 }
+
+/* focus shifting, raising and lowering.  */
 
 x_focus_on_frame (f)
      struct frame *f;
@@ -5052,9 +5069,8 @@
   else
     x_lower_frame (f);
 }
-
-/* Change from withdrawn state to mapped state,
-   or deiconify. */
+
+/* Change of visibility.  */
 
 x_make_frame_visible (f)
      struct frame *f;
@@ -5139,6 +5155,8 @@
 
 /* Change from mapped state to withdrawn state. */
 
+/* Make the frame visible (mapped and not iconified).  */
+
 x_make_frame_invisible (f)
      struct frame *f;
 {
@@ -5314,7 +5332,7 @@
   UNBLOCK_INPUT;
 #endif /* not USE_X_TOOLKIT */
 }
-
+
 /* Destroy the X window of frame F.  */
 
 x_destroy_window (f)