Home › Blog › Focus follows mouse on macOS, without raising windows

Focus follows mouse on macOS, without raising windows

Updated 2026-09-11 · 5 min read · by Okie Dockie

Short answer: macOS has no supported setting for focus-follows-mouse outside Terminal, and the old defaults tricks no longer work. A helper app using the Accessibility API can do it, but the important detail is that it must focus the window without raising it — otherwise hovering across a tiled screen keeps reshuffling your window stack. Okie Dockie does this, and never raises.

The two-click problem

You have two windows side by side. You are typing in the left one, you see a button in the right one, you click it — and nothing happens, because that click only focused the right window. Click again and the button finally responds.

macOS has worked this way forever. Some applications opt into click-through for some controls, which makes it worse rather than better: you can never quite predict whether a click will land. On Windows and on Linux this is not a thing people think about, which is why it is one of the first complaints from anyone switching.

It compounds with window tiling. The more windows you have arranged on screen — and the whole point of snap layouts is to have several — the more of your clicks are wasted on focusing.

Why the old tricks stopped working

Search for this and you will find a defaults write command for Terminal:

defaults write com.apple.terminal FocusFollowsMouse -bool true

It works, and it only affects Terminal. There is no system-wide equivalent. Older hacks that poked at the window server, and utilities built on them, stopped working as Apple tightened what unsigned code may do to other applications. Anything that still works today does so through the Accessibility API, with your explicit permission.

Focus without raising: the crucial distinction

This is where most implementations go wrong, and it is worth understanding before you install anything.

There are two separate ideas that sound like one:

What you want is focus. If hovering also raises, then every time your pointer crosses a window on the way to somewhere else, that window jumps to the front and rearranges your screen. Drag your mouse diagonally across four tiled windows and you have reshuffled the stack four times. Within a day it is unbearable, and it is the reason most people who try focus-follows-mouse turn it off again.

Focusing without raising is technically fiddly — it needs a specific, undocumented window-server call, and the obvious variant of that call is the raising one. Okie Dockie deliberately has no raise option at all. Hover a window, type into it, click into it; the stacking order never changes, and the window you had on top stays on top.

How to set it up

  1. Install Okie Dockie and allow it under System Settings → Privacy & Security → Accessibility.
  2. Turn on click-through focus from the menu bar icon.

That is the whole configuration. From then on the window under your pointer takes your keystrokes, and a click acts on the control you clicked instead of being swallowed. It is free — window behaviour is not the paid part of the app.

It costs effectively nothing to run: a single shared event tap, no polling and no timers, which is why the app uses about 36 MB of memory when idle, peaking around 86 MB only while a switcher or list is on screen.

The one case it cannot fix

Chromium-based browsers ignore a focus change that does not reorder windows. Hover from one Chrome window to another and Chrome will not accept the focus, because it is watching for the raise that never comes.

We could work around it by raising the window, and chose not to — bringing Chrome windows forward every time your pointer crossed one would be far more disruptive than the problem it solves. So: focus follows your mouse everywhere, except between two Chrome windows, where you still click once. Any tool that claims otherwise is raising windows, and you will notice.

Get every Chrome profile into your Dock

Okie Dockie builds a real Dock icon for each Chrome profile you use, badged with that profile's own picture. Click one and you land back in the window it already had open.

Everything except Chrome profile icons is free forever, and the profile icons come with a 7-day free trial that starts on its own — no sign-up, no card. macOS 13+, Apple Silicon and Intel.

Frequently asked questions

Does macOS have a focus follows mouse setting?

Only in Terminal, via defaults write com.apple.terminal FocusFollowsMouse -bool true. There is no system-wide setting, and the older window-server hacks no longer work on current macOS. A helper app with Accessibility permission is the only route.

Will hover-to-focus bring windows to the front?

It should not, and in Okie Dockie it never does — focus moves while the stacking order is left alone, and there is no raise option. Tools that raise on hover reshuffle your windows every time the pointer crosses one, which is why people usually turn the feature back off.

Why does it not work between two Chrome windows?

Chromium ignores focus changes that do not reorder windows. The only fix would be to raise the window, which we deliberately do not do. Every other application works normally.

Does it make clicks work first time?

Yes. That is the practical benefit: a click on a background window acts on the control you clicked instead of being spent on focusing the window first.

Does it use much battery or memory?

No. It uses one shared event tap with no polling and no timers. The whole app, with every feature enabled, uses about 36 MB when idle and around 86 MB at its busiest.

Was this guide helpful?