How to Stop Accidentally Switching Desktops on Mac
You're mid-sentence and the whole desktop slides sideways — a slightly sloppy scroll just became a three-finger swipe. Accidental Space switching has exactly two causes: a too-easy trackpad gesture, and macOS "helpfully" jumping to wherever an app's windows live. Both have switches.
Fix the gesture: four fingers or off
- Open System Settings → Trackpad.
- Click the More Gestures tab.
- Find Swipe between full-screen applications.
- Change it from three fingers to Swipe Left or Right with Four Fingers — or turn it off entirely.
Three fingers is simply too close to a two-finger scroll; one stray finger and you've swiped. Four fingers keeps the gesture but makes it hard to trigger by accident — that middle ground is right for most people. Turning it off is for those who never switch Spaces by trackpad at all. Either change applies instantly and is just as easy to reverse. (Same path on macOS 13, 14, and 15. On a Magic Mouse, the equivalent lives in System Settings → Mouse → More Gestures — the two-finger swipe between full-screen apps.)
Stop macOS jumping to an app's Space
The other classic: you click an app in the Dock — or Cmd + Tab to it — and macOS yanks you to a different desktop where that app has a window. That's a setting, not a law:
- Open System Settings → Desktop & Dock.
- Scroll to Mission Control.
- Turn off When switching to an application, switch to a Space with open windows for the application.
Now switching to an app keeps you on the current desktop. The trade-off is real, though: the app comes forward but its windows may be elsewhere, so you'll sometimes face a menu bar with no window. If that annoys you more than the jumping did, turn it back on — or open a fresh window with Cmd + N where you are.
Two more stabilizers
- Automatically rearrange Spaces based on most recent use (same Mission Control section) — with this on, your desktops shuffle themselves, so even deliberate switches land somewhere unexpected. Turn it off and Desktop 2 stays Desktop 2 forever.
- Assign apps to desktops deliberately. Right-click an app's Dock icon → Options → This Desktop pins it, so its windows stop scattering across Spaces — fewer surprise destinations when you do switch.
- Check your hot corners. If the screen doesn't slide but Mission Control keeps erupting when your pointer grazes a corner, that's a hot corner, not a swipe. In Desktop & Dock → Hot Corners…, either clear the corner or — the better fix — hold a modifier key like
Optionwhile choosing the action, so the corner only fires when you hold that key too.
Keep the deliberate routes
None of the changes above touch the on-purpose ways to move around: Ctrl + → and Ctrl + ← slide between Spaces, Ctrl + ↑ opens Mission Control with the full Spaces bar, and Ctrl + 1, Ctrl + 2… jump straight to a numbered desktop once you enable them in System Settings → Keyboard → Keyboard Shortcuts → Mission Control. Switching desktops should feel like a decision — these make it one keystroke, which is all a decision needs.
Gesture sensitivity, Mission Control behavior, Dock quirks — Mainspring turns 90+ hidden macOS settings into labelled, reversible toggles you can flip and un-flip freely.
Try Mainspring free →Signed & notarized by Apple · 1-day free trial · $29 once
Still sliding sideways?
If the desktop keeps moving with the gesture off and no hot corner set, something else owns a swipe — an external trackpad with its own settings, or a mouse utility remapping gestures. Work through the full trackpad gestures guide to see every gesture macOS itself can trigger, and rule the system ones out first.