Make mouse focus more reliable on tags and overlays