aboutsummaryrefslogtreecommitdiffstats
path: root/src/xterm.c
diff options
context:
space:
mode:
authorKarl Heuer <[email protected]>1995-06-09 19:15:28 +0000
committerKarl Heuer <[email protected]>1995-06-09 19:15:28 +0000
commitd047c4ebf21104688ff15f0cc3a3882997bb53fd (patch)
tree53cead5e41375e0a1fc1c159c357fb7837b03b17 /src/xterm.c
parent399164b4b3385b7f86b31f27789ab1010d4f5029 (diff)
(x_get_keysym_name): New function.
Diffstat (limited to 'src/xterm.c')
-rw-r--r--src/xterm.c28
1 files changed, 23 insertions, 5 deletions
diff --git a/src/xterm.c b/src/xterm.c
index 0881067392..e9e615acbd 100644
--- a/src/xterm.c
+++ b/src/xterm.c
@@ -1629,6 +1629,21 @@ x_emacs_to_x_modifiers (dpyinfo, state)
| ((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 @@ x_set_window_size (f, change_gravity, cols, rows)
#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 @@ x_set_mouse_pixel_position (f, pix_x, pix_y)
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 @@ XTframe_raise_lower (f, raise)
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 @@ x_make_frame_visible (f)
/* 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 @@ x_iconify_frame (f)
UNBLOCK_INPUT;
#endif /* not USE_X_TOOLKIT */
}
-
+
/* Destroy the X window of frame F. */
x_destroy_window (f)