- * Have the windows attributes set
- *
- * HINT: the masks should be updated when adding/removing callbacks.
- * This might speed up message processing. Is that true?
- */
- winAttr.event_mask = StructureNotifyMask | SubstructureNotifyMask | ExposureMask |
- ButtonPressMask | ButtonReleaseMask | KeyPressMask | KeyRelease |
- VisibilityChangeMask | EnterWindowMask | LeaveWindowMask |
- PointerMotionMask | ButtonMotionMask;
+ * XXX HINT: the masks should be updated when adding/removing callbacks.
+ * XXX This might speed up message processing. Is that true?
+ * XXX
+ * XXX A: Not appreciably, but it WILL make it easier to debug.
+ * XXX Try tracing old GLUT and try tracing freeglut. Old GLUT
+ * XXX turns off events that it doesn't need and is a whole lot
+ * XXX more pleasant to trace. (Hint: Think mouse-motion!)
+ * XXX
+ * XXX It may make a difference in networked environments or on
+ * XXX some very slow systems, but I think that that is secondary
+ * XXX to making debugging easier.
+ */
+ winAttr.event_mask = StructureNotifyMask | SubstructureNotifyMask |
+ ExposureMask | ButtonPressMask | ButtonReleaseMask | KeyPressMask |
+ KeyRelease | VisibilityChangeMask | EnterWindowMask | LeaveWindowMask |
+ PointerMotionMask | ButtonMotionMask;