# HG changeset patch # User Karl Heuer # Date 802725328 0 # Node ID 58ce63f1100870fa6eed0b1296c8b1cb4f0e5bd0 # Parent 1d5d8a256d88a3148d79762ef48b669ed671d51c (x_get_keysym_name): New function. diff -r 1d5d8a256d88 -r 58ce63f11008 src/xterm.c --- 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)