Linux: Fixed the linux code for the new way of creating windows