-fix core window not on focus after switch tab.