IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Feb 13, 2006, 9:27:46 AM (20 years ago)
Author:
eugene
Message:

various minor fixes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Ohana/src/kapa/graph/cursor.c

    r5354 r6424  
    11# include "Ximage.h"
    22
    3 # define IgnoreMask (long) (ClientMessage | ButtonReleaseMask | PointerMotionMask)
     3/* # define IgnoreMask (long) (ClientMessage | ButtonReleaseMask | PointerMotionMask) */
     4# define IgnoreMask (long) (~(StructureNotifyMask | SubstructureNotifyMask | ExposureMask | KeyPressMask | ButtonPressMask))
    45
    56int LastEvent (Display *display, int type, XEvent *event);
     
    3637
    3738  events:
    38     if (XEventsQueued (graphic.display, QueuedAfterFlush) < 1){
     39    if (XEventsQueued (graphic.display, QueuedAfterFlush) < 1) {
     40        fprintf (stderr, ".");
    3941      usleep (50000);
    4042      continue;
     
    98100    /* remove those events we will ignore */
    99101    while (XCheckMaskEvent (display, IgnoreMask, &event)) continue;
     102
     103    /* events to remove which have no mask component */
     104    while (XCheckTypedEvent (display, ClientMessage, &event)) continue;
     105    while (XCheckTypedEvent (display, SelectionClear, &event)) continue;
     106    while (XCheckTypedEvent (display, SelectionNotify, &event)) continue;
     107    while (XCheckTypedEvent (display, SelectionRequest, &event)) continue;
    100108  }
    101109  return (FALSE);
Note: See TracChangeset for help on using the changeset viewer.