Changeset 3695 for trunk/Ohana/src/kapa/event/EventLoop.c
- Timestamp:
- Apr 11, 2005, 4:09:30 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kapa/event/EventLoop.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kapa/event/EventLoop.c
r3465 r3695 1 1 # include "Ximage.h" 2 3 # define IgnoreMask (long) (ButtonPressMask | ClientMessage | ButtonReleaseMask | KeyPressMask | PointerMotionMask) 2 4 3 5 int LastEvent (Display *display, int type, XEvent *event) { … … 26 28 27 29 if (XEventsQueued (graphic.display, QueuedAfterFlush) < 1) { 28 usleep ( 10000);30 usleep (50000); 29 31 continue; 30 32 } … … 32 34 display = graphic.display; 33 35 34 /* only do the last entry for these events */ 35 /* this ignores the return status from these functions */ 36 /* grab the last entry for these events */ 36 37 if (LastEvent (display, ConfigureNotify, &event)) Reconfig (&event); 38 if (LastEvent (display, CirculateNotify, &event)) Reconfig (&event); 37 39 if (LastEvent (display, Expose, &event)) Refresh (1); 40 38 41 if (LastEvent (display, MappingNotify, &event)) XRefreshKeyboardMapping ((XMappingEvent *) &event); 42 43 /* drop and ignore the following StructureNotifyMask events */ 44 LastEvent (display, GravityNotify, &event); 45 LastEvent (display, ReparentNotify, &event); 46 LastEvent (display, MapNotify, &event); 47 LastEvent (display, UnmapNotify, &event); 48 49 /* remove those events we will ignore */ 50 while (XCheckMaskEvent (display, IgnoreMask, &event)) continue; 51 39 52 } 40 53 return (status);
Note:
See TracChangeset
for help on using the changeset viewer.
