2
* Motif Tools Library, Version 3.1
5
* Written by David Flanagan.
6
* Copyright (c) 1992-2001 by David Flanagan.
7
* All Rights Reserved. See the file COPYRIGHT for details.
8
* This is open source software. See the file LICENSE for details.
9
* There is no warranty for this software. See NO_WARRANTY for details.
12
* Revision 1.1.1.1 2001/07/18 11:06:02 root
15
* Revision 1.2 2001/06/12 16:25:28 andre
16
* *** empty log message ***
24
#if NeedFunctionPrototypes
25
void XmtDiscardButtonEvents(Widget w)
27
void XmtDiscardButtonEvents(w)
31
Display *dpy = XtDisplay(w);
34
XSync(dpy, False); /* get any events from the server */
35
while (XCheckMaskEvent(dpy,
36
ButtonPressMask | ButtonReleaseMask |
37
ButtonMotionMask | PointerMotionMask,
43
#if NeedFunctionPrototypes
44
void XmtDiscardKeyPressEvents(Widget w)
46
void XmtDiscardKeyPressEvents(w)
50
Display *dpy = XtDisplay(w);
53
XSync(dpy, False); /* get any events from the server */
54
while (XCheckMaskEvent(dpy, KeyPressMask, &event))