aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKarl Heuer1995-06-09 19:15:28 +0000
committerKarl Heuer1995-06-09 19:15:28 +0000
commitd047c4ebf21104688ff15f0cc3a3882997bb53fd (patch)
tree53cead5e41375e0a1fc1c159c357fb7837b03b17 /src
parent399164b4b3385b7f86b31f27789ab1010d4f5029 (diff)
downloademacs-d047c4ebf21104688ff15f0cc3a3882997bb53fd.tar.gz
emacs-d047c4ebf21104688ff15f0cc3a3882997bb53fd.zip
(x_get_keysym_name): New function.
Diffstat (limited to 'src')
-rw-r--r--src/xterm.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 0881067392c..e9e615acbd5 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1629,6 +1629,21 @@ x_emacs_to_x_modifiers (dpyinfo, state)
1629 | ((state & ctrl_modifier) ? ControlMask : 0) 1629 | ((state & ctrl_modifier) ? ControlMask : 0)
1630 | ((state & meta_modifier) ? dpyinfo->meta_mod_mask : 0)); 1630 | ((state & meta_modifier) ? dpyinfo->meta_mod_mask : 0));
1631} 1631}
1632
1633/* Convert a keysym to its name. */
1634
1635char *
1636x_get_keysym_name (keysym)
1637 KeySym keysym;
1638{
1639 char *value;
1640
1641 BLOCK_INPUT;
1642 value = XKeysymToString (keysym);
1643 UNBLOCK_INPUT;
1644
1645 return value;
1646}
1632 1647
1633/* Mouse clicks and mouse movement. Rah. */ 1648/* Mouse clicks and mouse movement. Rah. */
1634 1649
@@ -4941,7 +4956,7 @@ x_set_window_size (f, change_gravity, cols, rows)
4941#endif /* not USE_X_TOOLKIT */ 4956#endif /* not USE_X_TOOLKIT */
4942} 4957}
4943 4958
4944/* Mouse warping, focus shifting, raising and lowering. */ 4959/* Mouse warping. */
4945 4960
4946void 4961void
4947x_set_mouse_position (f, x, y) 4962x_set_mouse_position (f, x, y)
@@ -4979,6 +4994,8 @@ x_set_mouse_pixel_position (f, pix_x, pix_y)
4979 0, 0, 0, 0, pix_x, pix_y); 4994 0, 0, 0, 0, pix_x, pix_y);
4980 UNBLOCK_INPUT; 4995 UNBLOCK_INPUT;
4981} 4996}
4997
4998/* focus shifting, raising and lowering. */
4982 4999
4983x_focus_on_frame (f) 5000x_focus_on_frame (f)
4984 struct frame *f; 5001 struct frame *f;
@@ -5052,9 +5069,8 @@ XTframe_raise_lower (f, raise)
5052 else 5069 else
5053 x_lower_frame (f); 5070 x_lower_frame (f);
5054} 5071}
5055 5072
5056/* Change from withdrawn state to mapped state, 5073/* Change of visibility. */
5057 or deiconify. */
5058 5074
5059x_make_frame_visible (f) 5075x_make_frame_visible (f)
5060 struct frame *f; 5076 struct frame *f;
@@ -5139,6 +5155,8 @@ x_make_frame_visible (f)
5139 5155
5140/* Change from mapped state to withdrawn state. */ 5156/* Change from mapped state to withdrawn state. */
5141 5157
5158/* Make the frame visible (mapped and not iconified). */
5159
5142x_make_frame_invisible (f) 5160x_make_frame_invisible (f)
5143 struct frame *f; 5161 struct frame *f;
5144{ 5162{
@@ -5314,7 +5332,7 @@ x_iconify_frame (f)
5314 UNBLOCK_INPUT; 5332 UNBLOCK_INPUT;
5315#endif /* not USE_X_TOOLKIT */ 5333#endif /* not USE_X_TOOLKIT */
5316} 5334}
5317 5335
5318/* Destroy the X window of frame F. */ 5336/* Destroy the X window of frame F. */
5319 5337
5320x_destroy_window (f) 5338x_destroy_window (f)