Open the Mission Control preference pane in System Preferences, and uncheck “Displays have separate Spaces”.