summaryrefslogtreecommitdiff
path: root/src/EvToWire.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/EvToWire.c')
-rw-r--r--src/EvToWire.c10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/EvToWire.c b/src/EvToWire.c
index 124fb744..b4d7c2b0 100644
--- a/src/EvToWire.c
+++ b/src/EvToWire.c
@@ -42,13 +42,15 @@ from The Open Group.
#include "Xlibint.h"
/*
- * reformat a wire event into an XEvent structure of the right type.
+ * Reformat an XEvent structure to a wire event of the right type.
+ * Return True on success. If the type is unrecognized, return what
+ * _XUnknownNativeEvent returns (i.e., False).
*/
Status
_XEventToWire(
-register Display *dpy, /* pointer to display structure */
-register XEvent *re, /* pointer to where event should be reformatted */
-register xEvent *event) /* wire protocol event */
+ register Display *dpy,
+ register XEvent *re, /* in: from */
+ register xEvent *event) /* out: to */
{
switch (event->u.u.type = re->type) {
case KeyPress: