+2002-05-04 Andrew Choi <akochoi@shaw.ca>
+
+ * macterm.c (XTread_socket): Call WaitNextEvent once instead of
+ repeatedly.
+
2002-05-03 Jason Rumney <jasonr@gnu.org>
* process.c (Fmake_network_process): Only support server sockets
if (NILP (Fboundp (Qmac_ready_for_drag_n_drop)))
event_mask -= highLevelEventMask;
- while (WaitNextEvent (event_mask, &er, 0L, NULL) && numchars > 0)
+ if (WaitNextEvent (event_mask, &er, (expected ? app_sleep_time : 0L), NULL))
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:
#endif /* not TARGET_API_MAC_CARBON */
count++;
- bufp++;
- numchars--;
}
default: