XQuartz: Fixed the "laggy" startup under the new model. This was caused by xinit blocking expecting SIGUSR1 and our stub never sending it.

(cherry picked from commit ee92aced10d0743c4658e53b58b5d9f5a094a415)
This commit is contained in:
Jeremy Huddleston 2008-06-10 01:39:15 -07:00
commit 5170c169db
2 changed files with 14 additions and 0 deletions

View file

@ -350,6 +350,10 @@ Bool DarwinEQInit(void) {
QuartzModeEQInit();
/* Note that this *could* cause a potential async issue, since we're checking
* darwinEvents without holding the lock, but darwinEvents is only ever set
* here, so I don't bother.
*/
if (!darwinEvents) {
darwinEvents = (xEvent *)xcalloc(sizeof(xEvent), GetMaximumEventsNum());