标签云

微信群

扫码加入我们

WeChat QR Code


I wish I could place a conditional bounty on this. I'd pay a lot for an actual solution to this.

2018年10月21日08分42秒

I would pay money for this for sure. If it basically worked like mouse focus (without auto-raise) does in unix, I'd be super happy. Perhaps we can put up a bounty somewhere.

2018年10月22日08分42秒

Same here, I would pay money for this.

2018年10月21日08分42秒

I love how I went to vote up a comment only to see that it's Nathan Binkert. Let's grab beers soon. Would love to know what you're up to these days!

2018年10月22日08分42秒

Sure you're crazy. But apparently I am too. I'm also looking for a solution that allows working without auto-raise, since I do a lot of work where I need to quickly do something in a window but do not need to see the whole window at that particular moment.

2018年10月21日08分42秒

Awesome, just what I was looking for.

2018年10月22日08分42秒

This is definitely only a partial solution -- but it's an easy and useful partial solution!! Thank you!

2018年10月22日08分42秒

Addendum: Setting this for terminal allows it to work if you mouse over a terminal window, even from within another app! Since for me, that's the main reason I'd be likely to actually want to use it, that makes this a 99% answer! Huge up-vote! (Well, I already did, but I'd do it again if I could.)

2018年10月21日08分42秒

Note that you'll probably need to close Terminal and re-open for it to take effect.

2018年10月21日08分42秒

iTerm2 has this functionality built in... in Preferences, select the Pointer tab, down at the bottom is a "Focus follows mouse" option. It will even grab the focus away from the currently active app (i.e. say your browser is the active app and you're typing in a browser field... mouse into an iTerm2 window and your typing appears there, mouse out and it goes back to your browser or other active app).

2018年10月22日08分42秒

He doesn't seem to have put up the code that he wrote either :(

2018年10月21日08分42秒

That makes a lot of sense. One thing that annoys/confuses me is that the scroll behavior does seem to have a lazy focus. So I can move the mouse over to another window, scroll the text, and then when I start typing, the output goes to another application.

2018年10月22日08分42秒

Totally fair point about the menu bar though with the standard delay it was not an issue for me in practice.

2018年10月22日08分42秒

Like others, I'm an old X-Windows turned Mac a couple of years ago. And also like others, this one issue continues to drive me up a wall. Having to click on a window to get it focused and then having it auto-rise to the top is bad. (I was about to write words like 'insanity', but decided I wouldn't be so over the top.)

2018年10月21日08分42秒

Calum: sorry, but I do not agree. I have used Focus-Follows-Mouse on Mac OS X (using CodeTek Virtual Desktop Pro), and it worked perfectly! It worked consistently with all apps, and switching apps, moving windows to different workspaces, and navigating workspaces worked much easier than how it is implemented in the latest OS X [10.6.7]. It is sad that Apple crushed CodeTek and it's product - Virtual Desktop Pro was really superior to how OS X workspaces are implemented. It worked basically like Fvwm on LINUX - super fast navigation.

2018年10月22日08分42秒

Calum: I can't really test it right now, as none of my Macs runs 10.4 or earlier, but if I recall correctly the application would switch after a fraction of a second and the menu bar would switch accordingly

2018年10月22日08分42秒

This is just one more reason why the detached top menu bar in OS X is one of the most bizarre, ridiculous UI ideas I've ever seen. Whoever came up with that one needs to be tarred and feathered.

2018年10月22日08分42秒

I'm not seeing this work consistently, BUT it almost works on Yosemite 10.10.5

1970年01月01日00分03秒

This does not work in Mac OS X El Capitan: ⌃⌥-click generates a right click, while ⌘-click extends the selection.

2018年10月22日08分42秒

/Technically/ this works on 10.12 "macOS sierra", but lack of modifier key standards across apps and wm make another Yegge-esque tragedy. ⌘-clicking a link in browsers also opens a new tab. In Chrome, ⌘-click on a tab is also multi-select. At least ⌃⌥-click works well enough on editors & terminals, and ⌘-click-drag on the title bar consistently moves windows without raising them.

2018年10月21日08分42秒

dreeves there is a slight delay on it, but as far as I know the timing is not configurable.

2018年10月21日08分42秒

There are several syntax errors in the configuration file. I've corrected those and pasted them here.

2018年10月22日08分42秒

I tried Amethyst, and it works to solve the OP's question. It does not appear to have support for the variant Focus Follows Mouse without Autoraise.

2018年10月22日08分42秒

If anyone discovers a "Focus Follows Mouse without Autoraise" capability, I'd like to hear about it. In the meantime: JasonR.Coombs your updated ~/.amethyst settings worked for me--quite helpful, thanks.

2018年10月22日08分42秒

You don't need to modify the configuration file manually. You can enable this feature in the Preferences of Amethyst. The name is Focus follows mouse (experimental).

2018年10月21日08分42秒

I've tried MondoMouse, but if I enable focus-follows-mouse, it auto-raises the window. Auto-raise is annoying for me, it decreases my productivity a lot. Is it possible to get focus-follows-mouse without auto-raise?

1970年01月01日00分03秒

This is a great find! Why isn't it voted up more? pts: I don't like overlapping windows anyway, so I think this will work for me.

2018年10月22日08分42秒

thanks for pointing that out - unfortunately the auto-raise drives me nuts :-/

2018年10月22日08分42秒

same for me! :P yet Apple claims they know things better

2018年10月21日08分42秒

This would be brilliant. One of the main points of focus-follows-mouse would be to give keyboard focus to other windows without having to explicitly click on them, so focus-on-keypress should do the right thing. Does anything implement this?

2018年10月22日08分42秒

Could you edit your previous post? That's more clear and easier to vote on one particular application in one post than multiple posts with different versions.

2018年10月21日08分42秒

It's true, it would help with clutter and if your new program works I'd like to vote it up to the top for posterity!

2018年10月21日08分42秒

dreeves added instructions to make it executable: chmod 700 AutoRaise from the command line (in Applications folder). Also fixed a bug where the raising would stop working when a notification arrives. Also reduced the default delay. I am using it with multiple screens. For that purpose it seems to do the job quite well.

2018年10月21日08分42秒

Ah, and I removed my older (outdated) posts. So feel free to vote up this one ;-)

2018年10月21日08分42秒

Thanks for the tool, works great. It would be awesome if you opensourced it!

2018年10月22日08分42秒

AFAIK, it's been this way since scroll wheels gained Mac support. It is completely consistent in one sense: buttons/wheels/balls on the mouse follow the pointer, stuff on the keyboard follows focus.

2018年10月21日08分42秒

It was a new feature in Leopard. Daring Fireball has a whole load of content on how some widgets/windows are click-to-focus and others are out-of-focus-click-activates-the-widget. So it's definitely not consistent, yet.

2018年10月22日08分42秒

Frank Schmitt - Buttons also follow focus - If I want to press a button in Lastfm, then I need to click the window once (even if I'm clicking right on the button) and then the button.

2018年10月22日08分42秒

hah! nice one!! :-)

2018年10月21日08分42秒

Thanks!!! Not just for focus-follows-mouse but also for letting me aware of chunkwm

2018年10月22日08分42秒

github.com/koekeishiya/kwm

2018年10月21日08分42秒

I've tried this. The issue is that it raises the window. For me, one of the huge advantage of focus-follow-mouse, is the ability to work on a partially covered window (so I can copy text or follow instruction from another terminal or a browser that is taking a significant amount of the screen.

1970年01月01日00分03秒

dvj's answer gives a couple of obscure tricks that help do the things you're talking about that are hard to do otherwise.

2018年10月21日08分42秒

Oh wow, I'd be living with that for years after reading this thread! Now I have to decide which is the lesser evil.

2018年10月22日08分42秒

I don't buy this. It works perfectly fine for Terminal and for X11. Why can't that be extended to all applications?

2018年10月22日08分42秒

Quoting Chris Hanson "Get used to using the Mac on its own terms and I'm sure your desire to force it to behave just like whatever X11 stuff you used to use will subside in a bit as you find new efficient ways of working." I strongly disagree with this statement. In this day and age, I shouldn't have to get used to being without a useful/desirable feature because Mac doesn't want me to have it or doesn't think it is useful. The lack of the feature (which is present as an option in all other Unix/Linux distrobutions) is one of the reasons I hate my MAC more every day.

2018年10月22日08分42秒

Ugh! This simply is not true (at least the "your desire will subside" part). I've been using OSX for about two years now, and while many of the differences are just fine, I'm still accidentally closing the wrong tabs because I can scroll whatever's under my mouse, but keystrokes go to whatever has focus. It drives me up the wall! I can not overstate how much I dislike this behavior.

2018年10月21日08分42秒

Great point about OSX already having scroll-follows-mouse. Do anti focus-follows-mouse people hate that feature? Can it be turned off? (Not that I want to. I consider it better than nothing, but the inconsistency is worse than annoying.)

2018年10月22日08分42秒

+1 This is actually a good answer.

2018年10月22日08分42秒