[BUG]: Window Focus Unchanged When Toggling Between Windows with mouse_follows_focus Set to False #298

Closed
opened 2026-01-05 14:49:34 +01:00 by adam · 2 comments
Owner

Originally created by @solomonrosemite on GitHub (Feb 21, 2024).

Originally assigned to: @LGUG2Z on GitHub.

Describe the bug
When two windows are stacked, the setting mouse_follows_focus set to false and toggling between these two windows using komorebic cycle-focus next, the focus does not change.

In this case, I would expect the focus the change. And it does change and work as I expect if the setting mouse_follows_focus is set to true.

To Reproduce
Steps to reproduce the behavior:

  1. Set mouse_follows_focus to false.
  2. Open and stack two windows. (For example the notepad)
  3. Start typing on the first notepad.
  4. Toggle to the other window. (komorebic cycle-focus next)
  5. Continue typing...
  6. (You should see that you are still typing on the first notepad window.)

Expected behavior
When two windows are stacked, the setting mouse_follows_focus set to false and toggling between these two windows using komorebic cycle-focus next, the focus should change to the window in foreground. (This already works as expected but only if the setting mouse_follows_focus is set to true)

Screenshots and Videos
Not sure if necessary. Let me know if I should provide any.

Operating System
Provide the output of systeminfo | grep "^OS Name\|^OS Version"

OS Name:                   Microsoft Windows 11 Home
OS Version:                10.0.22631 N/A Build 22631

komorebic check Output
Provide the output of komorebic check

No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Jesse

Looking for configuration files in C:\Users\Jesse

No komorebi configuration found in C:\Users\Jesse

If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration

Additional context
My config.

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/.config/komorebi/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "mouse_follows_focus": false,
  "alt_focus_hack": true,
  "default_workspace_padding": 0,
  "default_container_padding": 0,
  "monitors": []
}
Originally created by @solomonrosemite on GitHub (Feb 21, 2024). Originally assigned to: @LGUG2Z on GitHub. **Describe the bug** When two windows are stacked, the setting `mouse_follows_focus` set to `false` and toggling between these two windows using `komorebic cycle-focus next`, the focus does not change. In this case, I would expect the focus the change. And it does change and work as I expect if the setting `mouse_follows_focus` is set to `true`. **To Reproduce** Steps to reproduce the behavior: 1. Set `mouse_follows_focus` to `false`. 2. Open and stack two windows. (For example the notepad) 3. Start typing on the first notepad. 4. Toggle to the other window. (komorebic cycle-focus next) 5. Continue typing... 6. (You should see that you are still typing on the first notepad window.) **Expected behavior** When two windows are stacked, the setting `mouse_follows_focus` set to `false` and toggling between these two windows using `komorebic cycle-focus next`, the focus should change to the window in foreground. (This already works as expected but only if the setting `mouse_follows_focus` is set to `true`) **Screenshots and Videos** Not sure if necessary. Let me know if I should provide any. **Operating System** Provide the output of `systeminfo | grep "^OS Name\|^OS Version"` ``` OS Name: Microsoft Windows 11 Home OS Version: 10.0.22631 N/A Build 22631 ``` **`komorebic check` Output** Provide the output of `komorebic check` ``` No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\Jesse Looking for configuration files in C:\Users\Jesse No komorebi configuration found in C:\Users\Jesse If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration ``` **Additional context** My config. ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.json", "app_specific_configuration_path": "$Env:USERPROFILE/.config/komorebi/applications.yaml", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "mouse_follows_focus": false, "alt_focus_hack": true, "default_workspace_padding": 0, "default_container_padding": 0, "monitors": [] } ```
adam added the bug label 2026-01-05 14:49:34 +01:00
adam closed this issue 2026-01-05 14:49:34 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Feb 22, 2024):

Interesting edge case 👀 I'll try to take a closer look at this on the weekend 🤞

@LGUG2Z commented on GitHub (Feb 22, 2024): Interesting edge case 👀 I'll try to take a closer look at this on the weekend 🤞
Author
Owner

@LGUG2Z commented on GitHub (Mar 8, 2024):

@SolomonRosemite https://www.youtube.com/watch?v=dIwpTK6fyLk the fix video dedicated to you! Thanks for sponsoring the project ♥️

@LGUG2Z commented on GitHub (Mar 8, 2024): @SolomonRosemite https://www.youtube.com/watch?v=dIwpTK6fyLk the fix video dedicated to you! Thanks for sponsoring the project ♥️
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#298