[BUG]: Wonky Workspace Behavior #139

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

Originally created by @dustinlacewell on GitHub (Sep 20, 2022).

Describe the bug
Very strange behavior related to workspaces. When doing FocusWorkspace or SendToWorkspace things go crazy and windows get moved to the wrong workspace, minimzed or maximized when they're not supposed to etc. See video below.

To Reproduce
Steps to reproduce the behavior:
Here is my configuration:

#SingleInstance Force
#Include %A_ScriptDir%\komorebic.lib.ahk
#Include %A_ScriptDir%\komorebi.generated.ahk

WindowHidingBehaviour("minimize")
CrossMonitorMoveBehaviour("insert")
WatchConfiguration("enable")

InvisibleBorders(7, 0, 14, 7)
ActiveWindowBorderColour(66, 165, 245, "single") ; this is a nice blue colour
ActiveWindowBorder("enable")

EnsureWorkspaces(0, 2)

CompleteConfiguration()


#!^h::
Focus("left")
return

#!^j::
Focus("down")
return

#!^k::
Focus("up")
return

#!^l::
Focus("right")
return

#!^o::
PromoteFocus()
return

#!^p::
Promote()
return

#!^a::
FocusWorkspace(0)
+#!^a::
SendToWorkspace(0)

#!^s::
FocusWorkspace(1)
+#!^s::
SendToWorkspace(1)

Expected behavior
Windows are moved between workspaces. Workspaces are displayed normally.

Screenshots and Videos
This is just doing FocusWorkspace(0) over and over:
https://user-images.githubusercontent.com/53952/191327039-f8904ec4-85ea-4e9c-8a85-ebde0de2e0e3.mp4

Operating System

$ systeminfo | grep "^OS Name\|^OS Version"
OS Name:                   Microsoft Windows 11 Pro
OS Version:                10.0.22000 N/A Build 22000

Additional context

I noticed some errors in the log:

2022-09-20T19:35:12.105791Z ERROR komorebi::process_command: there is no container

Here is the log from a single press of FocusWorkspace(0):

$ komorebic log
2022-09-20T19:35:12.089500Z  INFO process_command{FocusWorkspaceNumber(0)}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.089731Z  INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}: komorebi::window_manager: focusing workspace
2022-09-20T19:35:12.089924Z  INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}:focus_workspace{idx=0}: komorebi::monitor: focusing workspace
2022-09-20T19:35:12.104649Z  INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.104809Z  INFO process_command{FocusWorkspaceNumber(0)}: komorebi::process_command: processed
2022-09-20T19:35:12.105508Z  INFO process_command{SendContainerToWorkspaceNumber(0)}:move_container_to_workspace{idx=0 follow=false}: komorebi::window_manager: moving container
2022-09-20T19:35:12.105791Z ERROR komorebi::process_command: there is no container
2022-09-20T19:35:12.107357Z  INFO process_command{FocusWorkspaceNumber(1)}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.107533Z  INFO process_command{FocusWorkspaceNumber(1)}:focus_workspace{idx=1}: komorebi::window_manager: focusing workspace
2022-09-20T19:35:12.107730Z  INFO process_command{FocusWorkspaceNumber(1)}:focus_workspace{idx=1}:focus_workspace{idx=1}: komorebi::monitor: focusing workspace
2022-09-20T19:35:12.137994Z  INFO process_command{FocusWorkspaceNumber(1)}:focus_workspace{idx=1}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.162979Z  INFO process_command{FocusWorkspaceNumber(1)}: komorebi::process_command: processed
2022-09-20T19:35:12.163279Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 1507494 })}:focus_container{idx=2}: komorebi::workspace: focusing container
2022-09-20T19:35:12.163349Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 1507494 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.170701Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 1507494 })}: komorebi::process_event: processed: (hwnd: 1507494, title: OBS 28.0.1 (64-bit, windows) - Profile: Untitled - Scenes: Untitled, exe: obs64.exe, class: Qt631QWindowIcon)
2022-09-20T19:35:12.170844Z  INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}: komorebi::window_manager: moving container
2022-09-20T19:35:12.170918Z  INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}:move_container_to_workspace{target_workspace_idx=1 follow=false}:focus_container{idx=1}: komorebi::workspace: focusing container
2022-09-20T19:35:12.170994Z  INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}:move_container_to_workspace{target_workspace_idx=1 follow=false}:focus_container{idx=2}: komorebi::workspace: focusing container
2022-09-20T19:35:12.172235Z  INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}:update_focused_workspace{follow_focus=true}: komorebi::window_manager: updating
2022-09-20T19:35:12.175089Z  INFO process_command{SendContainerToWorkspaceNumber(1)}: komorebi::process_command: processed
2022-09-20T19:35:12.175631Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 590216 })}:focus_container{idx=1}: komorebi::workspace: focusing container
2022-09-20T19:35:12.175716Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 590216 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.180323Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 590216 })}: komorebi::process_event: processed: (hwnd: 590216, title: komorebi.ahk - komorebi - Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1)
2022-09-20T19:35:12.180495Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 131390 })}:focus_container{idx=0}: komorebi::workspace: focusing container
2022-09-20T19:35:12.180622Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 131390 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.183310Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 131390 })}: komorebi::process_event: processed: (hwnd: 131390, title: New Issue · LGUG2Z/komorebi - Google Chrome, exe: chrome.exe, class: Chrome_WidgetWin_1)
2022-09-20T19:35:12.183431Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 263382 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.185656Z  INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 263382 })}: komorebi::process_event: processed: (hwnd: 263382, title: MINGW64:/c/Users/dustin, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2022-09-20T19:35:12.196375Z  INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 1507494 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.196637Z ERROR komorebi::process_event: there is no container/window
2022-09-20T19:35:12.211442Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.211626Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:focus_window{idx=0}: komorebi::container: focusing window
2022-09-20T19:35:12.211734Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:focus_container{idx=0}: komorebi::workspace: focusing container
2022-09-20T19:35:12.211891Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.228156Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}: komorebi::process_event: processed: (hwnd: 1507494, title: OBS 28.0.1 (64-bit, windows) - Profile: Untitled - Scenes: Untitled, exe: obs64.exe, class: Qt631QWindowIcon)
2022-09-20T19:35:12.228517Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.228969Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:focus_window{idx=0}: komorebi::container: focusing window
2022-09-20T19:35:12.229088Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:focus_container{idx=1}: komorebi::workspace: focusing container
2022-09-20T19:35:12.229232Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.281727Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}: komorebi::process_event: processed: (hwnd: 590216, title: komorebi.ahk - komorebi - Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1)
2022-09-20T19:35:12.282092Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.282237Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:focus_window{idx=0}: komorebi::container: focusing window
2022-09-20T19:35:12.282340Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:focus_container{idx=2}: komorebi::workspace: focusing container
2022-09-20T19:35:12.282418Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.322452Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}: komorebi::process_event: processed: (hwnd: 131390, title: New Issue · LGUG2Z/komorebi - Google Chrome, exe: chrome.exe, class: Chrome_WidgetWin_1)
2022-09-20T19:35:12.322696Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.322918Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:focus_window{idx=0}: komorebi::container: focusing window
2022-09-20T19:35:12.323263Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:focus_container{idx=3}: komorebi::workspace: focusing container
2022-09-20T19:35:12.323554Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating
2022-09-20T19:35:12.351243Z  INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}: komorebi::process_event: processed: (hwnd: 263382, title: MINGW64:/c/Users/dustin, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2022-09-20T19:35:12.351394Z  INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor
2022-09-20T19:35:12.351537Z  INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}:focus_window{idx=0}: komorebi::container: focusing window
2022-09-20T19:35:12.351613Z  INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}:focus_container{idx=3}: komorebi::workspace: focusing container
2022-09-20T19:35:12.379935Z  INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}: komorebi::process_event: processed: (hwnd: 263382, title: MINGW64:/c/Users/dustin, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)

Originally created by @dustinlacewell on GitHub (Sep 20, 2022). **Describe the bug** Very strange behavior related to workspaces. When doing `FocusWorkspace` or `SendToWorkspace` things go crazy and windows get moved to the wrong workspace, minimzed or maximized when they're not supposed to etc. See video below. **To Reproduce** Steps to reproduce the behavior: Here is my configuration: ``` #SingleInstance Force #Include %A_ScriptDir%\komorebic.lib.ahk #Include %A_ScriptDir%\komorebi.generated.ahk WindowHidingBehaviour("minimize") CrossMonitorMoveBehaviour("insert") WatchConfiguration("enable") InvisibleBorders(7, 0, 14, 7) ActiveWindowBorderColour(66, 165, 245, "single") ; this is a nice blue colour ActiveWindowBorder("enable") EnsureWorkspaces(0, 2) CompleteConfiguration() #!^h:: Focus("left") return #!^j:: Focus("down") return #!^k:: Focus("up") return #!^l:: Focus("right") return #!^o:: PromoteFocus() return #!^p:: Promote() return #!^a:: FocusWorkspace(0) +#!^a:: SendToWorkspace(0) #!^s:: FocusWorkspace(1) +#!^s:: SendToWorkspace(1) ``` **Expected behavior** Windows are moved between workspaces. Workspaces are displayed normally. **Screenshots and Videos** This is just doing FocusWorkspace(0) over and over: https://user-images.githubusercontent.com/53952/191327039-f8904ec4-85ea-4e9c-8a85-ebde0de2e0e3.mp4 **Operating System** ``` $ systeminfo | grep "^OS Name\|^OS Version" OS Name: Microsoft Windows 11 Pro OS Version: 10.0.22000 N/A Build 22000 ``` **Additional context** I noticed some errors in the log: ``` 2022-09-20T19:35:12.105791Z ERROR komorebi::process_command: there is no container ``` Here is the log from a single press of `FocusWorkspace(0)`: ``` $ komorebic log 2022-09-20T19:35:12.089500Z INFO process_command{FocusWorkspaceNumber(0)}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.089731Z INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}: komorebi::window_manager: focusing workspace 2022-09-20T19:35:12.089924Z INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}:focus_workspace{idx=0}: komorebi::monitor: focusing workspace 2022-09-20T19:35:12.104649Z INFO process_command{FocusWorkspaceNumber(0)}:focus_workspace{idx=0}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.104809Z INFO process_command{FocusWorkspaceNumber(0)}: komorebi::process_command: processed 2022-09-20T19:35:12.105508Z INFO process_command{SendContainerToWorkspaceNumber(0)}:move_container_to_workspace{idx=0 follow=false}: komorebi::window_manager: moving container 2022-09-20T19:35:12.105791Z ERROR komorebi::process_command: there is no container 2022-09-20T19:35:12.107357Z INFO process_command{FocusWorkspaceNumber(1)}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.107533Z INFO process_command{FocusWorkspaceNumber(1)}:focus_workspace{idx=1}: komorebi::window_manager: focusing workspace 2022-09-20T19:35:12.107730Z INFO process_command{FocusWorkspaceNumber(1)}:focus_workspace{idx=1}:focus_workspace{idx=1}: komorebi::monitor: focusing workspace 2022-09-20T19:35:12.137994Z INFO process_command{FocusWorkspaceNumber(1)}:focus_workspace{idx=1}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.162979Z INFO process_command{FocusWorkspaceNumber(1)}: komorebi::process_command: processed 2022-09-20T19:35:12.163279Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 1507494 })}:focus_container{idx=2}: komorebi::workspace: focusing container 2022-09-20T19:35:12.163349Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 1507494 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.170701Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 1507494 })}: komorebi::process_event: processed: (hwnd: 1507494, title: OBS 28.0.1 (64-bit, windows) - Profile: Untitled - Scenes: Untitled, exe: obs64.exe, class: Qt631QWindowIcon) 2022-09-20T19:35:12.170844Z INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}: komorebi::window_manager: moving container 2022-09-20T19:35:12.170918Z INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}:move_container_to_workspace{target_workspace_idx=1 follow=false}:focus_container{idx=1}: komorebi::workspace: focusing container 2022-09-20T19:35:12.170994Z INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}:move_container_to_workspace{target_workspace_idx=1 follow=false}:focus_container{idx=2}: komorebi::workspace: focusing container 2022-09-20T19:35:12.172235Z INFO process_command{SendContainerToWorkspaceNumber(1)}:move_container_to_workspace{idx=1 follow=false}:update_focused_workspace{follow_focus=true}: komorebi::window_manager: updating 2022-09-20T19:35:12.175089Z INFO process_command{SendContainerToWorkspaceNumber(1)}: komorebi::process_command: processed 2022-09-20T19:35:12.175631Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 590216 })}:focus_container{idx=1}: komorebi::workspace: focusing container 2022-09-20T19:35:12.175716Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 590216 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.180323Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 590216 })}: komorebi::process_event: processed: (hwnd: 590216, title: komorebi.ahk - komorebi - Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1) 2022-09-20T19:35:12.180495Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 131390 })}:focus_container{idx=0}: komorebi::workspace: focusing container 2022-09-20T19:35:12.180622Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 131390 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.183310Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 131390 })}: komorebi::process_event: processed: (hwnd: 131390, title: New Issue · LGUG2Z/komorebi - Google Chrome, exe: chrome.exe, class: Chrome_WidgetWin_1) 2022-09-20T19:35:12.183431Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 263382 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.185656Z INFO process_event{event=Minimize(SystemMinimizeStart, Window { hwnd: 263382 })}: komorebi::process_event: processed: (hwnd: 263382, title: MINGW64:/c/Users/dustin, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2022-09-20T19:35:12.196375Z INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 1507494 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.196637Z ERROR komorebi::process_event: there is no container/window 2022-09-20T19:35:12.211442Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.211626Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:focus_window{idx=0}: komorebi::container: focusing window 2022-09-20T19:35:12.211734Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:focus_container{idx=0}: komorebi::workspace: focusing container 2022-09-20T19:35:12.211891Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.228156Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 1507494 })}: komorebi::process_event: processed: (hwnd: 1507494, title: OBS 28.0.1 (64-bit, windows) - Profile: Untitled - Scenes: Untitled, exe: obs64.exe, class: Qt631QWindowIcon) 2022-09-20T19:35:12.228517Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.228969Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:focus_window{idx=0}: komorebi::container: focusing window 2022-09-20T19:35:12.229088Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:focus_container{idx=1}: komorebi::workspace: focusing container 2022-09-20T19:35:12.229232Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.281727Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 590216 })}: komorebi::process_event: processed: (hwnd: 590216, title: komorebi.ahk - komorebi - Visual Studio Code, exe: Code.exe, class: Chrome_WidgetWin_1) 2022-09-20T19:35:12.282092Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.282237Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:focus_window{idx=0}: komorebi::container: focusing window 2022-09-20T19:35:12.282340Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:focus_container{idx=2}: komorebi::workspace: focusing container 2022-09-20T19:35:12.282418Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.322452Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 131390 })}: komorebi::process_event: processed: (hwnd: 131390, title: New Issue · LGUG2Z/komorebi - Google Chrome, exe: chrome.exe, class: Chrome_WidgetWin_1) 2022-09-20T19:35:12.322696Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.322918Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:focus_window{idx=0}: komorebi::container: focusing window 2022-09-20T19:35:12.323263Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:focus_container{idx=3}: komorebi::workspace: focusing container 2022-09-20T19:35:12.323554Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}:update_focused_workspace{follow_focus=false}: komorebi::window_manager: updating 2022-09-20T19:35:12.351243Z INFO process_event{event=Show(SystemMinimizeEnd, Window { hwnd: 263382 })}: komorebi::process_event: processed: (hwnd: 263382, title: MINGW64:/c/Users/dustin, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2022-09-20T19:35:12.351394Z INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}:focus_monitor{idx=0}: komorebi::window_manager: focusing monitor 2022-09-20T19:35:12.351537Z INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}:focus_window{idx=0}: komorebi::container: focusing window 2022-09-20T19:35:12.351613Z INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}:focus_container{idx=3}: komorebi::workspace: focusing container 2022-09-20T19:35:12.379935Z INFO process_event{event=FocusChange(SystemForeground, Window { hwnd: 263382 })}: komorebi::process_event: processed: (hwnd: 263382, title: MINGW64:/c/Users/dustin, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) ```
adam added the bug label 2026-01-05 14:48:31 +01:00
adam closed this issue 2026-01-05 14:48:31 +01:00
Author
Owner

@LGUG2Z commented on GitHub (Sep 20, 2022):

This looks like it could be a case of user configuration error.

#!^a::
FocusWorkspace(0)
+#!^a::
SendToWorkspace(0)

#!^s::
FocusWorkspace(1)
+#!^s::
SendToWorkspace(1)

The bindings above are missing return statements, which I believe are required when doing multiline remapping with AHK; I imagine it should look more like this:

#!^a::
FocusWorkspace(0)
return

+#!^a::
SendToWorkspace(0)
return

#!^s::
FocusWorkspace(1)
return

+#!^s::
SendToWorkspace(1)
return
@LGUG2Z commented on GitHub (Sep 20, 2022): This looks like it could be a case of user configuration error. ```ahk #!^a:: FocusWorkspace(0) +#!^a:: SendToWorkspace(0) #!^s:: FocusWorkspace(1) +#!^s:: SendToWorkspace(1) ``` The bindings above are missing `return` statements, which I believe are required when doing multiline remapping with AHK; I imagine it should look more like this: ```ahk #!^a:: FocusWorkspace(0) return +#!^a:: SendToWorkspace(0) return #!^s:: FocusWorkspace(1) return +#!^s:: SendToWorkspace(1) return ```
Author
Owner

@dustinlacewell commented on GitHub (Sep 20, 2022):

This was it! Thank you, 🙏

@dustinlacewell commented on GitHub (Sep 20, 2022): This was it! Thank you, 🙏
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#139