TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Moving a macOS window by clicking anywhere on it

531 pointsby charlieirishabout 3 years ago

47 comments

wnolensabout 3 years ago
I use <a href="https:&#x2F;&#x2F;rectangleapp.com&#x2F;pro" rel="nofollow">https:&#x2F;&#x2F;rectangleapp.com&#x2F;pro</a> and really enjoy this app (I paid for it, it gets a lot of updates&#x2F;fixes).<p>It mostly takes care of snapping and resizing windows with hot keys, but has a less obvious feature in preferences to use mouse.<p>My setup is: CMD+SHIFT will move any window under mouse pointer CMD+SHIFT+CTRL will resize any window under mouse pointer
评论 #31279794 未加载
评论 #31278189 未加载
评论 #31279430 未加载
评论 #31278276 未加载
评论 #31277546 未加载
评论 #31277695 未加载
评论 #31279718 未加载
评论 #31279708 未加载
评论 #31278450 未加载
评论 #31283637 未加载
评论 #31278599 未加载
评论 #31277335 未加载
评论 #31279857 未加载
david-cakoabout 3 years ago
You can also move macOS windows by dragging the border along the opposite axis, with no configuration.
评论 #31276565 未加载
评论 #31276339 未加载
评论 #31276984 未加载
评论 #31276370 未加载
评论 #31277392 未加载
评论 #31276777 未加载
iwebdevfromhomeabout 3 years ago
I use the kinda hidden three finger dragging gesture that you can activate like this:<p>1. Choose Apple menu  &gt; System Preferences, then click Accessibility. 2. Select Pointer Control in the sidebar. (In earlier versions of macOS, select Mouse &amp; Trackpad.) 3. Click the Trackpad Options button. 4. Select ”Enable dragging,” then choose ”three finger drag” from the menu. 5. Click OK.
评论 #31276233 未加载
评论 #31275860 未加载
评论 #31277653 未加载
评论 #31276431 未加载
评论 #31278897 未加载
评论 #31277452 未加载
评论 #31280745 未加载
daenzabout 3 years ago
I&#x27;ve enabled this &quot;grab&quot; feature on every Linux window manager that has supported it. Hold alt or the windows key, click, move. Simple usability improvements make a world of difference, but for some reason, they are uncommon.
评论 #31279227 未加载
评论 #31277038 未加载
评论 #31277051 未加载
评论 #31278950 未加载
评论 #31291510 未加载
评论 #31278213 未加载
Bondi_Blueabout 3 years ago
I thought this was fairly well known with respect to the defaults customizations. There is a repo here: <a href="https:&#x2F;&#x2F;macos-defaults.com&#x2F;#-what-s-a-defaults-command" rel="nofollow">https:&#x2F;&#x2F;macos-defaults.com&#x2F;#-what-s-a-defaults-command</a><p>...but it is missing a lot of them, which are scattered across the internet. Some others worth checking out are aggregated here:<p><a href="https:&#x2F;&#x2F;gist.github.com&#x2F;romanhaa&#x2F;9804183f242991007b316a59c4ba5e5a" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;romanhaa&#x2F;9804183f242991007b316a59c4b...</a>
ameliusabout 3 years ago
Title should say &quot;by cmd+ctrl+clicking anywhere on it&quot;
cheerycarabout 3 years ago
Hyperdock is one of the best purchases I&#x27;ve ever made. It allows you to assign hot keys to window management - e.g.<p>alt-left-mouse: grab anywhere in window to move<p>option-command-left-mouse: resize window from anywhere in window<p>Hasn&#x27;t been updated in years but it still works on Monterey though it occasionally requires some kicking. I&#x27;ve looked for alternatives that are more up to date but can never find one that does the above - it&#x27;s really all I want in a window manager as I don&#x27;t like automated tiling and other features.<p><a href="https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;hyperdock&#x2F;id449830122?mt=12" rel="nofollow">https:&#x2F;&#x2F;apps.apple.com&#x2F;us&#x2F;app&#x2F;hyperdock&#x2F;id449830122?mt=12</a>
评论 #31278355 未加载
评论 #31276492 未加载
tgbugsabout 3 years ago
I&#x27;ve had `OnWindow Mod1 Mouse1 :MacroCmd {Raise} {Focus} {StartMoving}` in my fluxbox keys config for a decade or so? My brain will automatically issue and alt-click on a window in some other OS and I&#x27;m always jolted back to the reality that I&#x27;m not in my usual window manager. Now if only I could rebind that cmd ctrl on macos to alt.
评论 #31276595 未加载
edgyquantabout 3 years ago
My biggest complaint about MacOS is that I use multiple screens. When I swipe from one window to another on a single screen it focuses on the other screen which caused a lot of frustration.
评论 #31278787 未加载
tambourine_manabout 3 years ago
This looks to me like some experiment with touch enabled UI on the Mac by Apple.
评论 #31282281 未加载
评论 #31275619 未加载
评论 #31275523 未加载
RobertRobertsabout 3 years ago
My mac users feel the exhaustion of micro managing windows but don&#x27;t know what causes the drain until I show them a better way [1].<p>[1] <a href="https:&#x2F;&#x2F;rectangleapp.com&#x2F;" rel="nofollow">https:&#x2F;&#x2F;rectangleapp.com&#x2F;</a><p>(I add this to all the Macs I touch)
评论 #31275821 未加载
评论 #31276069 未加载
评论 #31276163 未加载
评论 #31277013 未加载
评论 #31275984 未加载
评论 #31276060 未加载
评论 #31275451 未加载
michaelsalimabout 3 years ago
On linux, this is something I use every single day. It&#x27;s awesome!<p>Haven&#x27;t seen this in the thread: You can resize the window by using right-click instead of left.<p>This works on both i3 and KDE for example.<p>Mod+Left click = Drag windows around Mod+Right click = Resize window
评论 #31277915 未加载
throwaways85989about 3 years ago
Can we talk for a moment about how horribly well hidden these shortkeys are for normal users? Why not blend in a shortkey-tooltip when dragging a window around normally using the title bar? Make stuff discoverable again?
评论 #31286622 未加载
评论 #31278308 未加载
FranklinMaillotabout 3 years ago
I don&#x27;t understand how MacOS is constently praised for its UI while half the comments here mention a third party app just to make it usable. Maybe it&#x27;s just me, but I owned a Mac for over 5 years and I could never wrap my head around how MacOS handles windows and open apps.
评论 #31276979 未加载
评论 #31278575 未加载
评论 #31277194 未加载
评论 #31276875 未加载
评论 #31277295 未加载
评论 #31277491 未加载
评论 #31277183 未加载
评论 #31277016 未加载
评论 #31277382 未加载
评论 #31278590 未加载
评论 #31276988 未加载
评论 #31279342 未加载
评论 #31277066 未加载
评论 #31277160 未加载
评论 #31277025 未加载
DavideNLabout 3 years ago
On my Macbook&#x2F;Trackpad I use &#x27;Enable dragging &gt; without drag lock&#x27;. The best setting i&#x27;ve ever found in macOS, it takes a little getting used to but it&#x27;s so much better;<p>&#x27; &gt; System Preferences &gt; Accessibility &gt; Pointer Control &gt; Trackpad Options &gt; Enable Dragging. &gt; without drag lock&#x27;<p>It basically allows you to drag everything without &#x27;force clicking&#x27; the trackpad. Instead you can now just &#x27;tap twice + hold finger down&#x27; and drag.
评论 #31282214 未加载
jondlmabout 3 years ago
I&#x27;m surprised no one has mentioned <a href="https:&#x2F;&#x2F;github.com&#x2F;koekeishiya&#x2F;yabai" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;koekeishiya&#x2F;yabai</a> -- it takes a little work to setup but it&#x27;s well worth the effort. It&#x27;s keyboard centric and auto lays out windows nicely.
评论 #31294340 未加载
stdohmabout 3 years ago
Something I use all the time to handle applications which might have multiple instances opened at once. For example, web browsers.<p>Press CMD-TAB to bring up the list of opened applications and then pressing UP or DOWN over a selected application to show the opened instances. After that use LEFT or RIGHT to select the instance you want to show.
评论 #31278172 未加载
评论 #31281503 未加载
评论 #31278337 未加载
blueberrychpstxabout 3 years ago
Another question - I&#x27;ve looked before for any documentation on building tools for Mac, and can&#x27;t really figure out anything besides &quot;run this xyz app to trigger an AppleScript and do magic&quot;.<p>Does anyone know of any Swift APIs for interacting at the level of the OS itself?
评论 #31276846 未加载
评论 #31278253 未加载
评论 #31281478 未加载
herunanabout 3 years ago
Finally some hacker news.
markstosabout 3 years ago
I use the feature with the Sway window manager for Linux. With Sway, you can move floating windows like this, and you can also resize or move tiled windows by clicking anywhere in the window while holding down a key.
评论 #31279414 未加载
评论 #31279160 未加载
mzmzmzmabout 3 years ago
This really should be a standard feature, everyone seems to have their own window manager for Mac desktops. I use an app called Window Mover that&#x27;s so old the developer and dmg can&#x27;t be found anywhere online, but it still works flawlessly on Monterey! Much more minimal than some of the populat apps so I keep the package handy. Using other Macs I&#x27;m struck by how clumsy it is not to have global window drag to move or resize. Fn is my favorite modifier since it so rarely interacts with the cursor (unlike other mod keys when using eg Photoshop).
nicwolffabout 3 years ago
Wish you could change the key combo for this, I&#x27;ve been using a long-abandoned tool called Zooom2 to do this with `fn` (and `fn` + `control` to resize`) and fear losing it on my next Mac if it&#x27;s an M1.
评论 #31276408 未加载
评论 #31278018 未加载
评论 #31276449 未加载
评论 #31276208 未加载
评论 #31276582 未加载
评论 #31287169 未加载
评论 #31276337 未加载
评论 #31276404 未加载
AprilArcusabout 3 years ago
By default, command-click enables &quot;focus follows mouse&quot;-like behavior, allowing you to manipulate the widgets of background windows without bringing them to the foreground.
评论 #31279546 未加载
abotsisabout 3 years ago
I’ve used apps for years to get this functionality. Great to know. Between this and enabling more emacs-ey keybindings has made life so much better.
rzzztabout 3 years ago
AlwaysMouseWheel supports Alt+dragging in Windows (I initally used it for its primary feature on 8.1, which is sending scroll events to the window under the mouse pointer): <a href="https:&#x2F;&#x2F;www.softwareok.com&#x2F;?seite=Microsoft&#x2F;AlwaysMouseWheel" rel="nofollow">https:&#x2F;&#x2F;www.softwareok.com&#x2F;?seite=Microsoft&#x2F;AlwaysMouseWheel</a>
nikolayabout 3 years ago
Like moving it accidentally clicking on the chome was not enough! This is the worst feature of macOS - a windows should be moved only by dragging on an obvious area like the title bar. Sometimes I just want to switch the focus and click on a window and it accidentally moves in a random direction by a few pixels!
qillerabout 3 years ago
I wish there was a feature or an app that would prevent moving and lock windows in place instead of this.<p>For example, Spark (email) annoys me cause you can drag the window by dragging the search box, so sometimes clicking that to focus causes the window to shift by a couple pixels
spurguabout 3 years ago
I&#x27;ve used Easy Move+Resize[0] for this and configured it to Alt+drag windows (like most Linux window managers).<p>[0] <a href="https:&#x2F;&#x2F;github.com&#x2F;dmarcotte&#x2F;easy-move-resize" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;dmarcotte&#x2F;easy-move-resize</a>
presidentabout 3 years ago
This method doesn&#x27;t allow customizing the keys. Best app for this is <a href="https:&#x2F;&#x2F;github.com&#x2F;finestructure&#x2F;Hummingbird" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;finestructure&#x2F;Hummingbird</a>.
leobgabout 3 years ago
Anyone know a tool it will automatically arrange all open windows of an application so that they are all of the same size? I often have many open Finder windows, and then arrange them manually on my screen to fill the available space.
gkkirilovabout 3 years ago
Is there similar for windows? I know there was 3rd party solutions with alt+ click
评论 #31276730 未加载
评论 #31276534 未加载
sandebertabout 3 years ago
(I posted about the same for Windows a day or so ago: <a href="https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31257779" rel="nofollow">https:&#x2F;&#x2F;news.ycombinator.com&#x2F;item?id=31257779</a>)
halayliabout 3 years ago
I use zooom2 which is no longer maintained but it allows me to drag&#x2F;resize windows while holding cmd+shift, option+shift. A feature that existed in windowmaker since the 90s.
WaltPurvisabout 3 years ago
Is this the default on Monterey? This behavior is enabled on my system, but I&#x27;m 100% sure I&#x27;ve never executed the terminal command from the linked article.
评论 #31277710 未加载
farminabout 3 years ago
I am windows user since windows 95. But it has slowly become a mess since it&#x27;s peak at Windows 2000. I am currently testing macos. I bought a Mac mini. First thing I learned is that my existing monitor just won&#x27;t work perfectly cause it is not retina and second there is not easy way to click windows in place!! So now I need to buy very expensive monitor or just get an imac and install a 3rd party app to manage windows. Hmm. I will still do these things. The rest of experience has been good.
asn0about 3 years ago
TIL about Alt-dragging windows in Linux!
评论 #31280612 未加载
whydoyoucareabout 3 years ago
I don&#x27;t need dragging as all my windows are full screen. :-) That said, this is a pretty neat trick.
nebben64about 3 years ago
Can you enable this but instead of the CMD+CTRL+Click, make it so it does this on force click ?
tokumeiabout 3 years ago
Awesome! Really missed this behavior when Linux and tiling window managers were my daily driver.
soheilabout 3 years ago
I wonder how interactive elements inside the window that respond to drag events are affected.
egypturnashabout 3 years ago
I shudder to imagine how badly this would interact with most art apps.
calvinmorrisonabout 3 years ago
anyone not using focus follows mouse is living in the past!
bezospen15about 3 years ago
Windows has had this for 2 decades
jmoleabout 3 years ago
this would go great with the otherwise useless force-touch (or hard-press?) gesture
gmasabout 3 years ago
so brave
rlandabout 3 years ago
MacOS is full of these UI &quot;tricks&quot; that remain undiscovered by 99% of users because they are:<p>- not obvious<p>- not discoverable<p>For example: if you hold option when you click the Wifi button, you actually can view a lot of information about the Wifi networks you are connecting to. This is invaluable when you&#x27;re dealing with a Wifi issue, and <i>completely undiscoverable!</i><p>I think MacOS is a perfectly usable operating system... If you&#x27;re god and can somehow &quot;just know&quot; all of these hidden secrets.
评论 #31278139 未加载
评论 #31278091 未加载
评论 #31278264 未加载
评论 #31279193 未加载
评论 #31278610 未加载
评论 #31278006 未加载
评论 #31278563 未加载
评论 #31278037 未加载
评论 #31278326 未加载
WhyNotHugoabout 3 years ago
I never figured out how to easily move windows on macOS.<p>How I know why; it&#x27;s disabled by default and you also need to hold down `Ctrl`.
评论 #31276570 未加载
评论 #31276204 未加载