When you activate Mission Control, it will show you all the windows for currently running apps, as in the screenshot above. If you click on a window that’s in a different Desktop Space, your Mac will swoosh you over to that window, taking you out of the Space you’re currently in.
To avoid that from happening, you can force Mission Control to only show you windows from open apps in the current Desktop Space. Here’s how.
To get Mission Control to only show you open windows from the current Desktop Space, type or paste the following into your Terminal app (/Applications/Utilities):
defaults write com.apple.dock wvous-show-windows-in-other-spaces -bool FALSE
Then, restart the Dock process, which also controls the Mission Control process, by typing the following into Terminal and hitting the Return key:
Now you’ll only see windows from the currently active Desktop Space when you activate Mission Control, either with a keystroke or from the Dock. Want to put it back the way it was? Simply issue the following command in Terminal:
defaults write com.apple.dock wvous-show-windows-in-other-spaces -bool TRUE
Then restart the Dock process again, with a
killall Dock command. Simple? Yes!
Via: Addictive Tips.