Changeset 3695 for trunk/Ohana/src/kii/event/EventLoop.c
- Timestamp:
- Apr 11, 2005, 4:09:30 PM (21 years ago)
- File:
-
- 1 edited
-
trunk/Ohana/src/kii/event/EventLoop.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/Ohana/src/kii/event/EventLoop.c
r2892 r3695 1 1 # include "Ximage.h" 2 3 # define IgnoreMask (long) (ClientMessage | ButtonReleaseMask) 2 4 3 5 int LastEvent (Display *display, int type, XEvent *event) { … … 33 35 display = graphic[0].display; 34 36 35 /* only do the last entry for these events */ 36 /* this ignores the return status from these functions */ 37 /* grab the last entry for these events */ 37 38 if (LastEvent (display, ConfigureNotify, &event)) Reconfig (graphic, layout, &event); 39 if (LastEvent (display, CirculateNotify, &event)) Reconfig (graphic, layout, &event); 38 40 if (LastEvent (display, Expose, &event)) Refresh (graphic, layout, 1); 39 if (LastEvent (display, MappingNotify, &event)) XRefreshKeyboardMapping ((XMappingEvent *) &event);40 41 if (LastEvent (display, MotionNotify, &event)) UpdatePointer (graphic, layout, (XMotionEvent *) &event); 41 42 if (LastEvent (display, ButtonPress, &event)) InterpretPresses (graphic, layout, (XButtonEvent *) &event); 42 43 if (LastEvent (display, KeyPress, &event)) InterpretKeys (graphic, layout, &event); 44 45 if (LastEvent (display, MappingNotify, &event)) XRefreshKeyboardMapping ((XMappingEvent *) &event); 46 47 /* drop and ignore the following StructureNotifyMask events */ 48 LastEvent (display, GravityNotify, &event); 49 LastEvent (display, ReparentNotify, &event); 50 LastEvent (display, MapNotify, &event); 51 LastEvent (display, UnmapNotify, &event); 52 53 /* remove those events we will ignore */ 54 while (XCheckMaskEvent (display, IgnoreMask, &event)) continue; 43 55 } 44 56 return (status);
Note:
See TracChangeset
for help on using the changeset viewer.
