2001-09-04 Andrew Choi <akochoi@cse.cuhk.edu.hk>
+ * src/macterm.c (XTread_socket): Read all pending events in the
+ event queue instead of one.
+
* makefile.MPW: Generate etc/DOC file from .elc files instead of
.el files.
do_app_suspend ();
break;
- case mouseMovedMessage:
+ case mouseMovedMessage: /* never reached */
do_mouse_moved (erp->where);
break;
}
if (NILP (Fboundp (Qmac_ready_for_drag_n_drop)))
event_mask -= highLevelEventMask;
- if (WaitNextEvent (event_mask, &er, (expected ? app_sleep_time : 0L), NULL))
+ while (WaitNextEvent (event_mask, &er, 0L, NULL) && numchars > 0)
switch (er.what)
{
case mouseDown:
mouse_tracking_in_progress = mouse_tracking_none;
tracked_scroll_bar = NULL;
count++;
+ bufp++;
+ numchars--;
break;
}
bufp->kind = menu_bar_activate_event;
XSETFRAME (bufp->frame_or_window, f);
count++;
+ bufp++;
+ numchars--;
}
break;
}
count++;
+ bufp++;
+ numchars--;
}
break;
XSETFRAME (bufp->frame_or_window,
((mac_output *) GetWRefCon (window_ptr))->mFP);
count++;
+ bufp++;
+ numchars--;
}
break;
bufp->timestamp = er.when * (1000 / 60); /* ticks to milliseconds */
count++;
+ bufp++;
+ numchars--;
break;
case kHighLevelEvent:
InvalRect (&(wp->portRect));
count++;
+ bufp++;
+ numchars--;
}
default: