fix linux login view and focus issue

Fix #2502