Ask Different is a question and answer site for power users of Apple hardware and software. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I work with two screens. On the primary screen, I have XCode on. On the other screen, I have the browser. While reading docs, I am usually focused on the XCode screen, typing in code.

So I want to close the tab in the other screen, I move my mouse to the 2nd screen and press CMD+W and it closes the XCode window instead because the focus is on that app. Sometimes I don't notice that the focus isn't on the other screen and close the app on the main screen instead. It's pretty annoying.

Is there any way to make the OS focus on the top window of the screen where the mouse pointer is active?

share|improve this question
up vote 1 down vote accepted

Check Zooom/2 and its Auto Raise feature that "causes the application currently under the mouse point to become the front-most application, after a user-specified delay. It's possible to raise just the window under the mouse or all windows for an application."

share|improve this answer
Hey, thanks for this! This is great! Not just for multiple screens but also for single display setups. – radj Apr 4 '13 at 1:18
Any confirmation if this still works under 10.9.1? – jxh Feb 22 '14 at 0:49

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.