[BUG]: Can't Switch Focus #202

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

Originally created by @langshangyuan on GitHub (May 10, 2023).

Describe the bug
Windows arrangement and other behavior work perfectly. But I can't switch the focus using komorebic focus left/right/up/down. I both test it in the terminal and with a hotkey.

Only the cursor position changes, but the focus still stays on the previous windows.

Expected behavior
The focus of windows can move smoothly.

Operating System

OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.253357 N/A Build 25357

komorebic check Output

KOMOREBI_CONFIG_HOME detected: C:\Users\langs\.config\komorebi

Looking for configuration files in C:\Users\langs\.config\komorebi

Found komorebi.ahk; this file will be autoloaded by komorebi


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

Log Information

2023-05-10T08:35:56.524990Z ERROR process_command{FocusWindow(Down)}:focus_container_in_direction{direction=Down}: komorebi::window: could not set as foreground window, but continuing execution of focus(): The system could not find the environment option that was entered. (0x800700CB)
Originally created by @langshangyuan on GitHub (May 10, 2023). **Describe the bug** Windows arrangement and other behavior work perfectly. But I can't switch the focus using `komorebic focus left/right/up/down`. I both test it in the terminal and with a hotkey. Only the cursor position changes, but the focus still stays on the previous windows. **Expected behavior** The focus of windows can move smoothly. **Operating System** ``` OS Name: Microsoft Windows 11 Pro OS Version: 10.0.253357 N/A Build 25357 ``` **`komorebic check` Output** ``` KOMOREBI_CONFIG_HOME detected: C:\Users\langs\.config\komorebi Looking for configuration files in C:\Users\langs\.config\komorebi Found komorebi.ahk; this file will be autoloaded by komorebi If running 'komorebic start --await-configuration', you will manually have to call the following command to begin tiling: komorebic complete-configuration ``` **Log Information** ``` 2023-05-10T08:35:56.524990Z ERROR process_command{FocusWindow(Down)}:focus_container_in_direction{direction=Down}: komorebi::window: could not set as foreground window, but continuing execution of focus(): The system could not find the environment option that was entered. (0x800700CB) ```
adam added the bug label 2026-01-05 14:48:59 +01:00
adam closed this issue 2026-01-05 14:48:59 +01:00
Author
Owner

@longthp commented on GitHub (Jul 1, 2023):

Hey, I have the same log error, but it happens only when I disable the "komorebic alt-focus-hack" option.

Another issue I noticed is that the Right-Alt key seems to remain pressed when switch to another workspace, and I have to release it by pressing the Left-Alt key.

@longthp commented on GitHub (Jul 1, 2023): Hey, I have the same log error, but it happens only when I disable the "komorebic alt-focus-hack" option. Another issue I noticed is that the Right-Alt key seems to remain pressed when switch to another workspace, and I have to release it by pressing the Left-Alt key.
Author
Owner

@startwarfields commented on GitHub (Jul 29, 2023):

Hey, I have the same log error, but it happens only when I disable the "komorebic alt-focus-hack" option.

Another issue I noticed is that the Right-Alt key seems to remain pressed when switch to another workspace, and I have to release it by pressing the Left-Alt key.

Remapping my alt key from right alt to left alt fixes this focus issue - I didn't have left alt mapped on my kinesis and it broke everything 😆

@startwarfields commented on GitHub (Jul 29, 2023): > Hey, I have the same log error, but it happens only when I disable the "komorebic alt-focus-hack" option. > > Another issue I noticed is that the Right-Alt key seems to remain pressed when switch to another workspace, and I have to release it by pressing the Left-Alt key. Remapping my alt key from right alt to left alt fixes this focus issue - I didn't have left alt mapped on my kinesis and it broke everything 😆
Author
Owner

@Gazareth commented on GitHub (Jan 2, 2024):

I'm having the same issue, I wasn't aware of alt-focus-hack, but enabling it seems to fix the issue

@Gazareth commented on GitHub (Jan 2, 2024): I'm having the same issue, I wasn't aware of `alt-focus-hack`, but enabling it seems to fix the issue
Author
Owner

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

alt-focus-hack has been deprecated

@LGUG2Z commented on GitHub (May 12, 2024): `alt-focus-hack` has been deprecated
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#202