fix display issue of popup window on linux