poll for viewport resizes to avoid apparent problem with intermittently
missing focus notifications