macOS 14+ · v1.0.0

HaoDrag

Move and resize any macOS window from anywhere inside it—without clicking the title bar, aiming at thin borders, or even pressing a mouse button. Hold two modifier keys and glide your pointer.

NotesEditor
⇧⌘No click

Hold Shift + Command and glide pointer — drag from inside the window

What it does

Move from anywhere (⇧ + ⌘)

Hold Shift + Command and move the pointer to drag whichever window sits underneath—no need to aim for the title bar.

Bottom-right resize (⌥ + ⇧)

Hold Option + Shift and glide the pointer to resize smoothly from the bottom-right corner while keeping the top-left corner anchored.

Works on background windows

Move or resize windows sitting behind your active app without stealing focus. An optional switch in the menu bar brings them forward if you prefer.

Built-in mis-trigger protection

Pressing any regular key (like ⌘⇧P or ⌘⇧4) or clicking the mouse cancels the gesture on the spot. You can also adjust the activation dead zone (0–16 pt) or swap modifier pairs in the menu bar.

How it stays instant

When you press the modifier pair, HaoDrag locates the top-most window via CGWindowListCopyWindowInfo matched against AXWindows with geometric tolerance—skipping slow DOM tree traversals inside browsers and Electron apps.

Pointer coordinates come straight from CGEvent in the native Accessibility coordinate space, so multi-display layouts and negative coordinates work with zero drift.

Updates run on a dedicated .userInteractive single-flight worker thread instead of timer throttling: the latest pointer position is sent immediately, never queued behind stale frames, and stops the instant you let go. During a gesture, App Nap is inhibited and the target app’s AXEnhancedUserInterface is temporarily turned off to eliminate implicit animation lag.

Get started

  1. Download the DMG for your Mac (Apple Silicon or Intel) and drag HaoDrag.app into Applications.
  2. Open HaoDrag and allow Accessibility access in System Settings → Privacy & Security → Accessibility. It activates automatically once granted—no restart required.
  3. Hold ⇧ + ⌘ to move any window under your pointer, or ⌥ + ⇧ to resize it from the bottom-right.

Good to know

Zero idle overhead

When you are not holding the modifiers, HaoDrag only listens for flagsChanged. Mouse and key-cancellation monitors are attached on demand and torn down on release.

Private and self-contained

No network requests, no analytics, and no log files written to disk. Everything stays on your Mac and logs only to Apple’s Unified Logging (os.Logger).

Launch at login & clean uninstall

Uses macOS SMAppService for login startup. Quit from the menu bar, move HaoDrag.app to the Trash, and remove it from Accessibility settings to uninstall completely.