← Back to context

Comment by anschwa

6 days ago

On macOS, you can enable window dragging by holding down the Control+Command keys with this command:

    defaults write -g NSWindowShouldDragOnGesture -bool true

I use this with "three finger drag", and resizing at the window border hasn't been much of an issue for me.

MacOS is the "it just works" operating system. As such, I think the moment that you need to declare custom workarounds like this, it kind of loses its legitimacy, and you should already be in Linux land.

  • I abhor the current state of macOS and Tim Cook’s leadership, but your take is nonsensical.

    For one, “it just works” hasn’t been used in over a decade, same as Google’s “don’t be evil”, which does tell you something about their current philosophies.

    But more importantly, “it just works” was obviously never about it “it reads your mind and does every software feature however you personally like”, it was about the integration of hardware and software and not having to fiddle with drivers and settings to get hardware basics working.

    https://www.reddit.com/r/mac/comments/7hd450/it_just_works/

  • Compared to my old NixOS with tiling window manager, I’d say MacOS panes just doesn’t work. I have Rectangle, but it’s no comparison to the full tiling experience. I switched for Apple Silicon nothing more

    • Most people wouldn't touch "NixOS" or a Linux-style "tiling window manager" with a 10-ft pole, though. For them, the tiling window manager is a good in-between.

    • I've been using Amethyst for a couple of years now and it's been working quite well for me.

    • what is the full tiling experience like? I was never a tiling WM guy, on Linux I'd just set some KDE shortcuts for moving and resizing windows. On macOS I used Spectacle and then Rectangle but not sure what I am missing out on, I was always content with Spectacle

      1 reply →

  • Even if this was a "custom workaround" this argument would be extreme "all or nothing" binary thinking.

    An OS can "just work" for of the stuff a user does, and just need some tweaking here or there. Doesn't mean if the "just works" stuff is not 100% you're just as good going to Linux.

    Anyway, this is not some "custom workaround", it's a regular Apple-provided macOS toggle. It's just not exposed in the UI, because for most users, the regular way "just works". I know all kinds of "defaults" toggles, and barely use 1/100 of them, because the actual defaults are fine.

  • But, believe it or not, is very customizable (and previously very scriptable). I have Shift+Command+M (maximize) bound to resize to fit the content (different from full screen in macOS). Anything that’s in a menu can be bound to a keyboard shortcut without any additional utilities.

    • I have multiple virtual desktops. Can I move a window to the next desktop from the keyboard without 3rd party software yet?

  • I kind of agree with you, but on macOS I still don’t have to ever think about drivers. The hardware just works. Linux isn’t quite there yet. My work XPS laptop running Ubuntu is close, but not quite the same.

  • Yes, the mac user faces incredible disillusion when he discovers that "just works" was just another marketing gimmick (to the likes of it doesn't get viruses!)

    • As a long-time Mac user, "it just works" actually meant "it either works or it doesn't" - a *binary*. Whereas other OSes were shades of grey - it _might_ work if you spend time searching and trying random combinations in settings.

      And it was good because it saved time.

      (Same used to apply to iOS too)

    • As a 20+ year heavy mac AND linux user, both are true.

      It doesn't get viruses, especially if you don't install random junk from warez sites and stick to MAS, brew, and a few trusted vendors. Even if you do install crap, it's trojans not viruses, which are more like the Yeti (something like that might exist, but few have seen it) than a problem mac users have.

      And things "just work" way way way way more than they do in Linux (and I've started using it professional as desktop and for dev work in late 1990s, I'm not weekend tourist to it), which is exactly what I expected as a pragmatist. Only some non-existing carricature user that exists in strawman arguments expected everything to be perfect.

      2 replies →

  • Windows is also the "it just works" operating system, and it has hundreds of useful things you can only do through registry hacks.

    It's not a very useful test.

    I look at the good things about macOS over desktop linux like how cmd-c/v works across all apps, and it would be amazing if it were just a cli command to bridge the gap.

    • AFAIK Windows has never been known or marketed as "it just works". It goes long way to maintain backwards compatibility, but lets not kid ourselves that it has any semblance to what Apple's "it just works" is supposed to mean.

Wish it worked on all windows. For some reason Settings is exempt from this, for example.

  • The macOS Settings app is broken in all kinds of ways, as far as UI/UX goes. It's been this way since they redesigned it a few years back. Not that it was great before, but the redesign just made it worse.

  • It (partially) works, but only if the cursor is NOT hovering over the right portion of the window. So only 30% works.

I think it was a mistake for Apple to put some of the best QOL, not just accessibility, enhancements behind the Accessibility section of the Settings, rather than on the Trackpad settings. Three finger drag is a game changer, and a lot of my colleagues had no idea it existed.

  • The weird thing is that setting used to be in the trackpad settings! I have no idea why they moved it. It's one of the first things I enable on every device I use.

    • Exactly, same, and same. I was in the company HQ a few weeks ago and one of my colleagues just got a new machine. I was watching them set it up and was like, "How do you live like that, clicking the top and holding to drag to move the window?" They had no idea three finger drag was a thing, life changed.

    • Probably due to the longstanding bugs with it. I still use it on all my laptops, but Finder in particular gets tripped up with what the drag state is when using it.

I tried this on most recent MacOS 26 - it does not work here. Might it be because I have Rectangle installed?

  • Works great for me. I enabled that functionality alongside resizing on RMB by using "Easy Move+Resize" from GH. I also use Raycast to bind most window management stuff, it's instant unlike the built-in alternatives on Tahoe.

  • Same, tried with and without Rectangle running and haven't seen it work yet. Must be missing something obvious.

    edit: I ended up trying Easy Move+Resize which is mentioned in a sibling comment, can recommend, works as advertised.

I don't think I know how to confirm that command is correct, and I've been a Mac user for decades. If Apple's solution to problems is "trust the CLI command you found on a website" then I might need to sell some shares.

if you search

NSWindowShouldDragOnGesture

you see how often this feature gets broken and type some other flag or install 3rd party app.