diff options
| author | Karl Heuer | 1995-06-09 19:15:28 +0000 |
|---|---|---|
| committer | Karl Heuer | 1995-06-09 19:15:28 +0000 |
| commit | d047c4ebf21104688ff15f0cc3a3882997bb53fd (patch) | |
| tree | 53cead5e41375e0a1fc1c159c357fb7837b03b17 | |
| parent | 399164b4b3385b7f86b31f27789ab1010d4f5029 (diff) | |
| download | emacs-d047c4ebf21104688ff15f0cc3a3882997bb53fd.tar.gz emacs-d047c4ebf21104688ff15f0cc3a3882997bb53fd.zip | |
(x_get_keysym_name): New function.
| -rw-r--r-- | src/xterm.c | 28 |
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 | |||
| 1635 | char * | ||
| 1636 | x_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 | ||
| 4946 | void | 4961 | void |
| 4947 | x_set_mouse_position (f, x, y) | 4962 | x_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 | ||
| 4983 | x_focus_on_frame (f) | 5000 | x_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 | ||
| 5059 | x_make_frame_visible (f) | 5075 | x_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 | |||
| 5142 | x_make_frame_invisible (f) | 5160 | x_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 | ||
| 5320 | x_destroy_window (f) | 5338 | x_destroy_window (f) |