Focus follows mouse trouble (Windows menus) #92

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

Originally created by @Lethaquell on GitHub (Jun 6, 2022).

Trouble showcase:

https://user-images.githubusercontent.com/8237884/172089369-799e03f3-9edb-49dd-b970-666e425fc079.mp4

So, I really like this feature in general, cause I don't have to click on a window to get it focused, but some Windows menus (i.e Start Menu, or quick settings) just keep closing if you aren't fast enough to move your mouse before the animation ends.

It also happening sometimes with PowerToys Run if you type something, then delete and Run just disappears cause mouse is somewhere else. (Can I set some rule to move mouse cursor right on PowerToys Run?)

Is it possible to somehow bypass this problem right now, without having focus follow disabled?

Originally created by @Lethaquell on GitHub (Jun 6, 2022). Trouble showcase: https://user-images.githubusercontent.com/8237884/172089369-799e03f3-9edb-49dd-b970-666e425fc079.mp4 So, I really like this feature in general, cause I don't have to click on a window to get it focused, but some Windows menus (i.e Start Menu, or quick settings) just keep closing if you aren't fast enough to move your mouse before the animation ends. It also happening sometimes with **PowerToys Run** if you type something, then delete and **Run** just disappears cause mouse is somewhere else. _(Can I set some rule to move mouse cursor right on PowerToys Run?)_ Is it possible to somehow bypass this problem right now, without having focus follow disabled?
adam closed this issue 2026-01-05 14:48:15 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jun 6, 2022):

@Lethaquell Can you confirm if you are running komorebic start or komorebic start --ffm? The latter is a custom implementation which (should) handle cases like this in a less frustrating way, however, this comes at the cost of slightly higher CPU utilization

The custom ffm implementation is kept behind a flag because regardless of if it is enabled or not, it still increases CPU usage.

komorebic.exe-start
Start komorebi.exe as a background process

USAGE:
    komorebic.exe start [OPTIONS]

OPTIONS:
        --ffm     Allow the use of komorebi's custom
                  focus-follows-mouse implementation
    -h, --help    Print help information

More info in this part of the readme.

@LGUG2Z commented on GitHub (Jun 6, 2022): @Lethaquell Can you confirm if you are running `komorebic start` or `komorebic start --ffm`? The latter is a custom implementation which (should) handle cases like this in a less frustrating way, however, this comes at the cost of [slightly higher CPU utilization](https://github.com/LGUG2Z/komorebi/issues/33) The custom ffm implementation is kept behind a flag because regardless of if it is enabled or not, it still increases CPU usage. ``` komorebic.exe-start Start komorebi.exe as a background process USAGE: komorebic.exe start [OPTIONS] OPTIONS: --ffm Allow the use of komorebi's custom focus-follows-mouse implementation -h, --help Print help information ``` More info in [this part](https://github.com/LGUG2Z/komorebi#focus-follows-mouse) of the readme.
Author
Owner

@Lethaquell commented on GitHub (Jun 6, 2022):

I'll try this when I get home.
Currently I'm using a .vbs script to run
komorebic start when my PC starts.

@Lethaquell commented on GitHub (Jun 6, 2022): I'll try this when I get home. Currently I'm using a .vbs script to run `komorebic start` when my PC starts.
Author
Owner

@Lethaquell commented on GitHub (Jun 6, 2022):

@LGUG2Z
I've started komorebic start --ffm
Issue is still there but happens every 3rd-4th try, instead of every single one (like shown on the video).
UPD:
Tested it for like a minute or so. Maybe it happens even more often, then I stated before. For PowerToys Run nothing changed, still closing after I'm deleting what I've entered.
Also I'm having this
image

And CPU fans going nuts also.
After I did komorebic stop fans goes completely silent.

@Lethaquell commented on GitHub (Jun 6, 2022): @LGUG2Z I've started `komorebic start --ffm` Issue is still there but happens every 3rd-4th try, instead of every single one (like shown on the video). **UPD:** Tested it for like a minute or so. Maybe it happens even more often, then I stated before. For **PowerToys Run** nothing changed, still closing after I'm deleting what I've entered. Also I'm having this ![image](https://user-images.githubusercontent.com/8237884/172207198-fb135b94-a7e2-4820-9294-7bcb94d3eca6.png) And CPU fans going nuts also. After I did `komorebic stop` fans goes completely silent.
Author
Owner

@LGUG2Z commented on GitHub (Jun 6, 2022):

I guess "more CPU usage" is relative to the actual CPU you're running; what is a little on my Ryzen might not be the case for everyone. 😅

Unfortunately the default FFM is just turning on a Windows flag for a feature that probably dates back to Windows 95 (or earlier?) that hasn't been kept up to date to be useful on current versions of the OS.

The custom implementation as you can see is still pretty experimental, but experimental in the sense that I have reached the limits of my knowledge in being able to tweak it for better performance and resource utilization.

The most practical advice that I can offer right now is have the komorebic toggle-focus-follows-mouse command set to a convenient hotkey so that you can quickly toggle it off when you come across the kind of behaviour that prevents you from doing what you want (like in the video).

If you come across any dedicated FFM utilities that work well, please share them here and I'll see if it is possible to integrate them. 🙏

@LGUG2Z commented on GitHub (Jun 6, 2022): I guess "more CPU usage" is relative to the actual CPU you're running; what is a little on my Ryzen might not be the case for everyone. 😅 Unfortunately the default FFM is just [turning on a Windows flag](https://github.com/LGUG2Z/komorebi/blob/master/komorebi/src/windows_api.rs#L595) for a feature that probably dates back to Windows 95 (or earlier?) that hasn't been kept up to date to be useful on current versions of the OS. The custom implementation as you can see is still pretty experimental, but experimental in the sense that I have reached the limits of my knowledge in being able to tweak it for better performance and resource utilization. The most practical advice that I can offer right now is have the `komorebic toggle-focus-follows-mouse` command set to a convenient hotkey so that you can quickly toggle it off when you come across the kind of behaviour that prevents you from doing what you want (like in the video). If you come across any dedicated FFM utilities that work well, please share them here and I'll see if it is possible to integrate them. 🙏
Author
Owner

@Lethaquell commented on GitHub (Jun 6, 2022):

@LGUG2Z
Sure thing I'll do!
Thanks for advices. For me it isn't the hell of an issue, cause I'm still able to use komorebic at ease. Just have to write to PowerToys Run in 1st attempt and be fast enough to use quick settings, etc.
Right now I'm trying to create a custom layout for my first workspace (It's Edge + Telegram) so Edge consumes like 60+% of my screen.
Anyways, keep up your great work!

@Lethaquell commented on GitHub (Jun 6, 2022): @LGUG2Z Sure thing I'll do! Thanks for advices. For me it isn't the hell of an issue, cause I'm still able to use komorebic at ease. Just have to write to PowerToys Run in 1st attempt and be fast enough to use quick settings, etc. Right now I'm trying to create a custom layout for my first workspace (It's Edge + Telegram) so Edge consumes like 60+% of my screen. Anyways, keep up your great work!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#92