fix bug of attachment window's context menu display issue on linux