register focus on top of visibilitychange

Crap, yeah. I can debounce it