Skip to content

Instantly share code, notes, and snippets.

@ddwang
Last active May 8, 2026 14:35
Show Gist options
  • Select an option

  • Save ddwang/20d2e39801c43f1c9716236695c040c7 to your computer and use it in GitHub Desktop.

Select an option

Save ddwang/20d2e39801c43f1c9716236695c040c7 to your computer and use it in GitHub Desktop.
Drag macOS windows from anywhere with Ctrl+Cmd

Drag macOS windows from anywhere

If your browser's title bar is crowded with extension icons, tab buttons, and toolbar controls, it can be surprisingly hard to find a spot to grab the window:

Crowded Chrome title bar

And here's how little of that frame is actually draggable (highlighted in green):

Draggable areas highlighted

macOS has a hidden setting that lets you drag any window from anywhere inside it — middle of a webpage, blank space, doesn't matter.

Enable it

In Terminal:

defaults write -g NSWindowShouldDragOnGesture -bool true

Then log out and back in (or quit and relaunch apps individually) so they pick up the change.

Use it

Hold Ctrl + Cmd and drag from anywhere inside a window. The window moves with the cursor — no need to aim for the title bar.

Disable it

defaults write -g NSWindowShouldDragOnGesture -bool false

Or remove the override entirely:

defaults delete -g NSWindowShouldDragOnGesture

Notes

  • Works in Chrome, Safari, Finder, and most native apps.
  • A handful of apps use Ctrl+Cmd for their own shortcuts and may behave oddly — rare in practice.
  • This is a long-standing macOS feature; it's just undocumented rather than deprecated.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment