focus-follows-mouse will make focus on desktop when mouse hover on it #8

Closed
opened 2026-01-05 14:47:38 +01:00 by adam · 5 comments
Owner

Originally created by @crosstyan on GitHub (Aug 16, 2021).

Originally assigned to: @LGUG2Z on GitHub.

I'm not sure if it's a bug (maybe it's a feature) but with focus-follows-mouse enabled the focus will be on the desktop when I move cursor on it, which sometimes is annoying.

Suggestion: with focus-follows-mouse enabled, user need to make an explicit click to change focus on desktop when mouse hover on it.

Update: auto focus on taskbar is also annoying.

Originally created by @crosstyan on GitHub (Aug 16, 2021). Originally assigned to: @LGUG2Z on GitHub. I'm not sure if it's a bug (maybe it's a feature) but with `focus-follows-mouse` enabled the focus will be on the desktop when I move cursor on it, which sometimes is annoying. Suggestion: with `focus-follows-mouse` enabled, user need to make an explicit click to change focus on desktop when mouse hover on it. Update: auto focus on taskbar is also annoying.
adam added the enhancement label 2026-01-05 14:47:38 +01:00
adam closed this issue 2026-01-05 14:47:38 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Aug 16, 2021):

komorebic focus-follows-mouse enable|disable is actually just a convenience wrapper around the built-in Windows Xmouse functionality. I agree that the desktop window and taskbar taking focus can be annoying at times 😞.

I don't think that implementing a brand new focus-follows-mouse functionality is something that I will do myself, but I will leave this issue open for anyone who wants to try implementing it and submitting a PR; it's a good first issue because it would be a relatively self-contained piece of work.

@LGUG2Z commented on GitHub (Aug 16, 2021): `komorebic focus-follows-mouse enable|disable` is actually just [a convenience wrapper](https://github.com/LGUG2Z/komorebi/blob/master/komorebi/src/windows_api.rs#L547) around the [built-in Windows Xmouse functionality](https://superuser.com/questions/954021/how-do-you-enable-focus-follows-mouse-in-windows-10). I agree that the desktop window and taskbar taking focus can be annoying at times 😞. I don't think that implementing a brand new `focus-follows-mouse` functionality is something that I will do myself, but I will leave this issue open for anyone who wants to try implementing it and submitting a PR; it's a good first issue because it would be a relatively self-contained piece of work.
Author
Owner

@LGUG2Z commented on GitHub (Aug 24, 2021):

@crosstyan you might want to try out this new toggle-focus-follows-mouse command in your config, I got tired of the focus changing like crazy whenever I wanted to do anything with the system tray and it's quite convenient to toggle FFM for a few seconds and then back on with the same hotkey.

@LGUG2Z commented on GitHub (Aug 24, 2021): @crosstyan you might want to try out this new `toggle-focus-follows-mouse` command in your config, I got tired of the focus changing like crazy whenever I wanted to do anything with the system tray and it's quite convenient to toggle FFM for a few seconds and then back on with the same hotkey.
Author
Owner

@crosstyan commented on GitHub (Aug 24, 2021):

@LGUG2Z I now prefer leaving focus-follows-mouse disabled because I always use Windows and have no trouble with an additional click. But yes, that's a good change.

I found an AHK script as a possible alternative to toggle-focus-follows-mouse. (I haven't tested yet) Maybe some modification are needed like filter out some window class.

@crosstyan commented on GitHub (Aug 24, 2021): @LGUG2Z I now prefer leaving `focus-follows-mouse` disabled because I always use Windows and have no trouble with an additional click. But yes, that's a good change. I found [an AHK script](https://autohotkey.com/board/topic/79636-function-setactivewindowtracking-ahk-l/) as a possible alternative to `toggle-focus-follows-mouse`. (I haven't tested yet) Maybe some modification are needed like filter out some window class.
Author
Owner

@LGUG2Z commented on GitHub (Sep 4, 2021):

@crosstyan I've added a first attempt at a custom implementation of focus follows mouse that ignores the desktop and taskbar, I'm trying it out now and it seems okay for my relatively basic usage; if you get a chance it would be good to see if you come across any edge cases with it!

@LGUG2Z commented on GitHub (Sep 4, 2021): @crosstyan I've added a first attempt at a custom implementation of focus follows mouse that ignores the desktop and taskbar, I'm trying it out now and it seems okay for my relatively basic usage; if you get a chance it would be good to see if you come across any edge cases with it!
Author
Owner

@LGUG2Z commented on GitHub (Sep 10, 2021):

After using this implementation for a week I'm happy to make it the new default. Changes have been merged to the master branch and this will be included in the next release 🎉.

@LGUG2Z commented on GitHub (Sep 10, 2021): After using this implementation for a week I'm happy to make it the new default. Changes have been merged to the `master` branch and this will be included in the next release 🎉.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#8