ignore GUI events in batch mode (mostly for map updates).