[BUG]: When animation is enabled, mouse_follows_focus does not work correctly when executing move related commands #428

Closed
opened 2026-01-05 14:50:41 +01:00 by adam · 3 comments
Owner

Originally created by @MasouShizuka on GitHub (Jul 11, 2024).

Describe the bug
The mouse_follows_focus setting will update the mouse position immediately after moving the window.

However, when animation is set, the window movement takes some time, causing the mouse to remain in the original position instead of the position after the window is moved.

To Reproduce
Steps to reproduce the behavior:

  1. Set animation.enabled = true
  2. Set mouse_follows_focus = true
  3. Open 2 windows, left window is A and right window is B. Focus window A
  4. execute cycle-move next
  5. It takes some time for window A to move to the position of window B, but the mouse is still at the position of window A at the beginning.

Expected behavior
The mouse moves to the center of window A after window A is moved.

Operating System

OS 名称:          Microsoft Windows 11 家庭中文版
OS 版本:          10.0.22631 暂缺 Build 22631

komorebic check Output

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

Looking for configuration files in C:\Users\MasouShizuka

No komorebi configuration found in C:\Users\MasouShizuka

If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration
Originally created by @MasouShizuka on GitHub (Jul 11, 2024). **Describe the bug** The `mouse_follows_focus` setting will update the mouse position immediately after moving the window. However, when `animation` is set, the window movement takes some time, causing the mouse to remain in the original position instead of the position after the window is moved. **To Reproduce** Steps to reproduce the behavior: 1. Set `animation.enabled = true` 2. Set `mouse_follows_focus = true` 3. Open 2 windows, left window is A and right window is B. Focus window A 4. execute `cycle-move next` 5. It takes some time for window A to move to the position of window B, but the mouse is still at the position of window A at the beginning. **Expected behavior** The mouse moves to the center of window A after window A is moved. **Operating System** ``` OS 名称: Microsoft Windows 11 家庭中文版 OS 版本: 10.0.22631 暂缺 Build 22631 ``` **`komorebic check` Output** ``` No KOMOREBI_CONFIG_HOME detected, defaulting to C:\Users\MasouShizuka Looking for configuration files in C:\Users\MasouShizuka No komorebi configuration found in C:\Users\MasouShizuka If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration ```
adam added the bug label 2026-01-05 14:50:41 +01:00
adam closed this issue 2026-01-05 14:50:41 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Jul 11, 2024):

Are you seeing this behaviour just with the cycle move commands, or also with the directional move commands? Also can you share what your animation duration is set to, as I think this might also be a factor.

@LGUG2Z commented on GitHub (Jul 11, 2024): Are you seeing this behaviour just with the cycle move commands, or also with the directional move commands? Also can you share what your animation duration is set to, as I think this might also be a factor.
Author
Owner

@MasouShizuka commented on GitHub (Jul 12, 2024):

I can see this on the cycle-move and move commands.
Also, there are commands to move between different monitors.

My animation settings are the default:

  "animation": {
    "enabled": true
  }
@MasouShizuka commented on GitHub (Jul 12, 2024): I can see this on the `cycle-move` and `move` commands. Also, there are commands to move between different monitors. My animation settings are the default: ```json "animation": { "enabled": true } ```
Author
Owner

@LGUG2Z commented on GitHub (Jul 12, 2024):

Reproduced and fixed ^

@LGUG2Z commented on GitHub (Jul 12, 2024): Reproduced and fixed ^
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#428