14

I have made iTerm borderless, like this:

Image of iTerm window

So, how can I move the window from anywhere inside the window and not just the title bar?

4
  • How did you make Terminal borderless? Nov 21, 2016 at 3:03
  • @user3439894 I am using iTerm 3 which has an option to hide borders
    – adb16x
    Nov 21, 2016 at 3:22
  • @adb16x its iterm2 v3 not iTerm3
    – mTvare
    Feb 16, 2021 at 11:46
  • Just an additional tip, if you make the iterm2 borderless (no title bar) then window management tools like rectangle will not be able to position iterm2 either. Mar 24 at 21:28

2 Answers 2

20

To move any window, including borderless ones such as iTerm, you can move the mouse to any edge of the window until the cursor become a double-arrow, then click and hold while moving the mouse in a direction opposite of what would change the window size.

As an example, if you mouse over the top edge while the cursor is a double-arrow then click, hold and drag upwards or downwards it makes the window larger or smaller respectively, however if you drag left or right the window moves and once moving you can drag it anywhere and then release the mouse when you have the window where you want it.

The same paradigm applies on any edge of the window, moving the mouse to any edge, to where the cursor becomes a double-arrow then click and hold, and move in a direction that will not make the window larger or smaller will move the window instead.


Update:

This answer was originally posted on Nov 21 '16 and the target OS was OS X 10.11 El Capitan and works as stated for that OS.

There have been recent comments about it on macOS High Sierra and if the Title Bar is showing then it can be moved as described however if the Title Bar is not showing then it can only be moved in the manner described from the top of the window. That said though I've noticed it can be a bit finicky but I can move it as described when tested under macOS 10.13.3 in reference to this update notice.

9
  • Wow. I suspect that's not what they had in mind when they designed that particular feature. That said, good thinking.
    – M. Justin
    Jun 7, 2017 at 21:57
  • 1
    Does this still work as of High Sierra? I'm having trouble Jan 29, 2018 at 12:33
  • 1
    @KyleHeuton it is working for me on 10.13.3 (tried with Firefox, chrome, and Preview)
    – Michael
    Apr 17, 2018 at 13:08
  • 1
    @Michael I wonder if it's iTerm then, I still can't move it Apr 17, 2018 at 16:24
  • 2
    @KyleHeuton I'm not sure how to make it borderless, but I am also observing that the dragging from edges other than top is NOT working in iTerm
    – Michael
    Apr 17, 2018 at 19:59
3

macOS has the ability to mouse move windows natively, it just happens to be disabled by default.

From Terminal:

defaults write -g NSWindowShouldDragOnGesture -bool true

Then log out/in or reboot for the setting to take effect.

Once rebooted, you can press control+command and left-click inside most windows and drag to move it.

To stop this behavior, you can delete this defaults setting from Terminal:

defaults delete -g NSWindowShouldDragOnGesture

Then log out/in or reboot for the change to take effect.


Note: This setting has worked since OS X Yosemite.

1
  • Thanks, but unfortunately this does not work for my target: Alacritty.
    – ospider
    Feb 23 at 2:34

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .