Mercurial > emacs
comparison src/xterm.c @ 12172:58ce63f11008
(x_get_keysym_name): New function.
author | Karl Heuer <kwzh@gnu.org> |
---|---|
date | Fri, 09 Jun 1995 19:15:28 +0000 |
parents | f6e8c75cca52 |
children | 09033eb62d7e |
comparison
equal
deleted
inserted
replaced
12171:1d5d8a256d88 | 12172:58ce63f11008 |
---|---|
1626 | ((state & super_modifier) ? dpyinfo->super_mod_mask : 0) | 1626 | ((state & super_modifier) ? dpyinfo->super_mod_mask : 0) |
1627 | ((state & hyper_modifier) ? dpyinfo->hyper_mod_mask : 0) | 1627 | ((state & hyper_modifier) ? dpyinfo->hyper_mod_mask : 0) |
1628 | ((state & shift_modifier) ? ShiftMask : 0) | 1628 | ((state & shift_modifier) ? ShiftMask : 0) |
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 } | |
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; | |
1631 } | 1646 } |
1632 | 1647 |
1633 /* Mouse clicks and mouse movement. Rah. */ | 1648 /* Mouse clicks and mouse movement. Rah. */ |
1634 | 1649 |
1635 /* Given a pixel position (PIX_X, PIX_Y) on the frame F, return | 1650 /* Given a pixel position (PIX_X, PIX_Y) on the frame F, return |
4939 XFlush (FRAME_X_DISPLAY (f)); | 4954 XFlush (FRAME_X_DISPLAY (f)); |
4940 UNBLOCK_INPUT; | 4955 UNBLOCK_INPUT; |
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) |
4948 struct frame *f; | 4963 struct frame *f; |
4949 int x, y; | 4964 int x, y; |
4977 | 4992 |
4978 XWarpPointer (FRAME_X_DISPLAY (f), None, FRAME_X_WINDOW (f), | 4993 XWarpPointer (FRAME_X_DISPLAY (f), None, FRAME_X_WINDOW (f), |
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; |
4985 { | 5002 { |
4986 #if 0 /* This proves to be unpleasant. */ | 5003 #if 0 /* This proves to be unpleasant. */ |
5050 if (raise) | 5067 if (raise) |
5051 x_raise_frame (f); | 5068 x_raise_frame (f); |
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; |
5061 { | 5077 { |
5062 int mask; | 5078 int mask; |
5137 } | 5153 } |
5138 } | 5154 } |
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 { |
5145 int mask; | 5163 int mask; |
5146 Window window; | 5164 Window window; |
5312 | 5330 |
5313 XFlush (FRAME_X_DISPLAY (f)); | 5331 XFlush (FRAME_X_DISPLAY (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) |
5321 struct frame *f; | 5339 struct frame *f; |
5322 { | 5340 { |