Open system preferences


Go to Mission Control

Untick the checkbox next to "Displays have separate Spaces"

After you untick it, you will have to log out and log back in.