Moving a macOS window by clicking anywhere on it (like on Linux)

Apr 16, 2022

Today I learned that since macOS High Sierra onwards you can move a window by clicking on any part of it (just like on Linux):

For some reason this behaviour is hidden behind a setting accessible only through CLI 🤷‍♂️

It can be enabled by running the following command:

defaults write -g NSWindowShouldDragOnGesture -bool true   

And logging out of the current macOS session.

You can then cmd + ctrl + click on any part of a window to move it.

P.S.: To disable this behaviour, you can run:

defaults delete -g NSWindowShouldDragOnGesture