[BUG]: Visual Studio popout editor window focus desync issues with multiple monitors
bug
### Summary
Demo video. Audio failed. There is a monitor to the left with only visual studio open:
https://github.com/user-attachments/assets/04eaca14-ca3b-4301-b89d-cd92a0a93dc7
Steps to reproduce:
- Have two monitors.
- Launch Visual Studio
- Open a project
- Pop out an editor to a new monitor
- Focus the main visual studio editor
- Focus the popout editor window
- The komorebi selected windows becomes the main VS editor, but the popout editor is what is receiving input.
### Obervations
The popout editor is what windows things is focused. The window still recieves keyboard inputs. I can still code in it. Keybindings like alt-space popup for the popout editor, not the main VS editor that komorebi thinks is focused.
Switching monitors is what appears to cause the issue to occur. It happens once, then it doens't happen again until I focus the main VS editor in monitor 1. Focusing a non-VS window in monitor 1 doesn't trigger the issue to occur again.
It focuses the last window focused from monitor 1. It doesn't have to be visual studio.
Visual Studio has a flowing popout window option. However changing this does not fix this issue.
<img width="627" height="194" alt="Image" src="https://github.com/user-attachments/assets/9975403e-2107-4bdb-9dfe-4335a252d110" />
### Version Information
```
> komorebic --version
komorebic 0.1.40
tag:v0.1.40
commit_hash:bed314b8
build_time:2026-02-14 21:08:01 +00:00
build_env:rustc 1.93.1 (01f6ddf75 2026-02-11),stable-x86_64-pc-windows-msvc
```
```
> systeminfo | findstr /B /C:"OS Name" /B /C:"OS Version"
OS Name: Microsoft Windows 11 Home
OS Version: 10.0.26200 N/A Build 26200
```
### Komorebi Configuration
Reproduced with:
```json
{
"$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/master/schema.asc.json",
"Visual Studio": {
"object_name_change": [
{
"kind": "Exe",
"id": "devenv.exe",
"matching_strategy": "Equals"
}
]
}
}
```
### Hotkey Configuration
```shell
#Requires AutoHotkey v2.0.2
#SingleInstance Force
#UseHook True
Komorebic(cmd) {
RunWait(format("komorebic.exe {}", cmd), , "Hide")
}
#+h::Komorebic("focus left")
#+j::Komorebic("focus down")
#+k::Komorebic("focus up")
#+l::Komorebic("focus right")
```
### Output of komorebic check
```shell
> komorebic check
KOMOREBI_CONFIG_HOME detected: D:\Dotfiles\windows\komorebi
Looking for configuration files in D:\Dotfiles\windows\komorebi
Found komorebi.ahk; this file will be autoloaded by komorebi
```
0 条评论