diff options
Diffstat (limited to 'src/WinEvent.c')
-rw-r--r-- | src/WinEvent.c | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/src/WinEvent.c b/src/WinEvent.c index 726c7729..d69a6671 100644 --- a/src/WinEvent.c +++ b/src/WinEvent.c @@ -24,17 +24,12 @@ used in advertising or otherwise to promote the sale, use or other dealings in this Software without prior written authorization from The Open Group. */ +/* $XFree86: xc/lib/X11/WinEvent.c,v 3.5 2001/10/28 03:32:32 tsi Exp $ */ #define NEED_EVENTS #include "Xlibint.h" -#ifdef __STDC__ -#define Const const -#else -#define Const /**/ -#endif - -extern long Const _Xevent_to_mask[]; +extern long const _Xevent_to_mask[]; #define AllPointers (PointerMotionMask|PointerMotionHintMask|ButtonMotionMask) #define AllButtons (Button1MotionMask|Button2MotionMask|Button3MotionMask|\ Button4MotionMask|Button5MotionMask) @@ -47,6 +42,7 @@ extern long Const _Xevent_to_mask[]; * matches. */ +int XWindowEvent (dpy, w, mask, event) register Display *dpy; Window w; /* Selected window. */ @@ -54,7 +50,7 @@ XWindowEvent (dpy, w, mask, event) register XEvent *event; /* XEvent to be filled in. */ { register _XQEvent *prev, *qelt; - unsigned long qe_serial; + unsigned long qe_serial = 0; LockDisplay(dpy); prev = NULL; |