Fix #6477 by sleeping for 16ms when minimized.