Merge "Don't allow to create a window in an unassigned display." into main