1: #include <X/mit-copyright.h>
   2: 
   3: /* $Header: XSync.c,v 10.4 86/02/01 15:40:36 tony Rel $ */
   4: /* Copyright    Massachusetts Institute of Technology    1985	*/
   5: 
   6: #include "XlibInternal.h"
   7: 
   8: extern _QEvent *_qfree;
   9: 
  10: /* Synchronize with errors and events, optionally discarding pending events. */
  11: 
  12: XSync (discard)
  13:     int discard;  /* 0 or 1 */
  14: {
  15:         register Display *dpy;
  16:     register XReq *req;
  17:     XRep rep;
  18:     GetReq (X_SetUp, 0);
  19:     _XReply(dpy, &rep);
  20:     if (discard && dpy->head) {
  21:         dpy->tail->next = _qfree;
  22:         _qfree = dpy->head;
  23:         dpy->head = dpy->tail = NULL;
  24:         dpy->qlen = 0;
  25:         }
  26: }
Last modified: 1986-02-01
Generated: 2016-12-26
Generated by src2html V0.67
page hit count: 499
Valid CSS Valid XHTML 1.0 Strict