Why you keep typing into the wrong window on a multi‑monitor Mac
You turn to the other screen, start typing, and your words land somewhere else. It isn't you. It's how macOS decides where keystrokes go.
You have a terminal on your laptop and an editor on the big monitor. You read something in the editor, turn back to the terminal, and type git commit. Nothing happens in the terminal, because the letters went into your source file.
If you use more than one display, this probably happens to you several times a day. You undo the stray text, click the window you meant, and type it again.
How macOS decides where your keys go
At any moment, one app is frontmost. Its name is in bold next to the Apple menu. Inside that app, one window is the key window, and every keystroke goes to it. In a terminal or editor with splits, one pane inside that window has focus too.
Two things play no part in this:
- Where you're looking. macOS has no idea which screen you're facing.
- Where the pointer is. Moving the mouse over a window doesn't focus it. You have to click.
Across all your displays there's only one key window. Add a second or third screen and there are more places for your attention to be while focus is still somewhere else.
Why it's worse with more screens
With one screen, the focused window is usually the one in front of you. With several, you often look at one screen while focus stays on another. You read docs on the left, check logs on the laptop, and write code on the right. Your eyes move all the time and focus only moves when you click.
Clicking to fix it costs more than it seems:
- You have to move your hand to the mouse or trackpad, which breaks your typing flow.
- The click can do something: move the text cursor, follow a link, or press a button.
- It happens so often you stop noticing it. That doesn't make it free.
The usual workarounds
| Fix | What it does | The catch |
|---|---|---|
| Click first | Focuses the window under the pointer. | Hand off the keyboard, and the click can land on something. |
| ⌘ Tab | Switches between apps. | Works by app, not by screen. Two windows of the same app can be on different displays. |
| ⌘ ` | Cycles windows of the current app. | You have to know how many presses it takes to reach the window you want. |
| Focus follows mouse | Focuses whatever is under the pointer. | Not built into macOS (Terminal has a hidden setting for its own windows only). You still have to move the mouse to where you're looking. |
There are a few more tricks in how to switch between windows on a Mac. All of these make you tell the Mac where you're looking, even though you just looked there.
Letting focus follow your eyes
Before you type on another screen, you turn your head toward it. That turn tells the Mac everything it needs to know. Glance Switch is a menu bar app that reads it with your Mac's camera and moves keyboard focus to the screen you're facing. The window you last used there comes forward, so you can type right away.
The tricky part is not moving focus. It's moving it only when you mean it. A focus switcher that jumps around is worse than none, so Glance Switch is careful:
- It switches once you've settled. Quick glances at another screen are ignored.
- It waits while you type. A glance at another pane to read something won't take your keystrokes.
- The mouse stays in charge. While you use the mouse or trackpad, and briefly after, it doesn't move focus.
- It ignores your phone. Looking down at the desk or out the window doesn't count as looking at a screen.
It works on the same screen too. With a single display, it focuses the window or split pane you're looking at. That's covered in how to focus split panes without clicking.
What about privacy?
A camera-based tool should be able to answer this simply. Frames are processed in memory on your Mac with Apple's Vision framework and discarded right away. Nothing is recorded, saved to disk or uploaded. There's no account and no analytics. The only network request is the license check.
You already look at the screen you want to type on. The Mac should notice.