Gah - Move exit check a bit more.

SVN revision: 30286
This commit is contained in:
Kim Woelders 2007-06-09 14:45:09 +00:00
parent 8d645158b9
commit 3f8e00a88e
1 changed files with 3 additions and 2 deletions

View File

@ -668,12 +668,13 @@ EventsMain(void)
/* Run all expired timers, get time to first non-expired (0. means none) */
time2 = TimersRun(time2);
if (XPending(disp))
continue;
if (Mode.wm.exit_mode)
break;
if (XPending(disp))
continue;
FD_ZERO(&fdset);
xfd = ConnectionNumber(disp);
FD_SET(xfd, &fdset);