Fix window focus/blur on Mozilla.