libcommon|Cleanup: Handling focus event to (un)pause

Fewer globals == good.