[BUG]: Closed terminal leaving ghost tiles when multiple terminal windows open #536

Closed
opened 2026-01-05 14:51:22 +01:00 by adam · 20 comments
Owner

Originally created by @gursuj on GitHub (Nov 28, 2024).

Summary

I know the bug report template says not to open issues for ghost tiles but in this case, ignoring the window causing the ghost tile is not a proper fix. Happens to me with windows terminal where, if I open multiple terminal windows and close one, the empty space isn't occupied by any other window. Running komorebic visible-windows shows that komorebi still thinks the closed window is still there. Example screenshot and output:

image

{
  "AUO723C-5&10278117&0&UID256": [
    {
      "title": "New Issue · LGUG2Z/komorebi — Mozilla Firefox",
      "exe": "firefox.exe",
      "class": "MozillaWindowClass"
    },
    {
      "title": "PowerShell",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    },
    {
      "title": "PowerShell",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    }
  ]
}

Moving everything off the workspace will then create a transparent window with the window title of the closed window (shown below) which can then be closed.

image

Not sure if this is being caused by Windows Terminal as closing the terminal seems to kill its powershell process as well when viewing inside Task Manager.

Version Information

OS Name: Microsoft Windows 10 Home
OS Version: 10.0.19045 N/A Build 19045

komorebic 0.1.30
tag:v0.1.30
commit_hash:9a3dbccc
build_time:2024-11-03 23:49:52 +00:00
build_env:rustc 1.82.0 (f6e511eec 2024-10-15),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.30/schema.json",
  "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 0,
  "default_container_padding": 0,
  "border_padding": 0,
  "border_offset": 0,
  "border_width": 2,
  "border": true,
  "border_colours": {
    "single": "#fff",
    "stack": "#00a542",
    "monocle": "#ff3399"
  },
  "mouse_follows_focus": false,
  "monitors": [
    {
      "workspaces": [
        {
          "name": "1",
          "layout": "VerticalStack",
          "initial_workspace_rules": [
              {
                  "id": "emacs.exe",
                  "kind": "Exe",
                  "matching_strategy": "Equals"
              }
          ]
        },
        {
          "name": "2",
          "layout": "VerticalStack",
          "initial_workspace_rules": [
              {
                  "id": "firefox.exe",
                  "kind": "Exe",
                  "matching_strategy": "Equals"
              }
          ]
        },
        {
          "name": "3",
          "layout": "VerticalStack"
        },
        {
          "name": "4",
          "layout": "VerticalStack"
        },
        {
          "name": "5",
          "layout": "VerticalStack"
        }
      ]
    }
  ],
  "ignore_rules": [
    {
        "kind": "Exe",
        "id": "Zebar.exe",
        "matching_strategy": "Equals"
    }, 
    {
        "kind": "Title",
        "id": "[Pp]icture.in.[Pp]icture",
        "matching_strategy": "Regex"
    },
    {
        "kind": "Title",
        "id": "Firefox — Sharing Indicator",
        "matching_strategy": "Equals"
    } 
  ],
  "stackbar": {
    "height": 20,
    "mode": "OnStack",
    "tabs": {
      "width": 300,
      "focused_text": "#00a542",
      "unfocused_text": "#b3b3b3",
      "background": "#141414"
    }
  }
}

Hotkey Configuration

.shell pwsh

# Reload whkd configuration
# alt + o                 : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd
alt + o                 : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell
alt + shift + o         : komorebic reload-configuration

# App shortcuts - these require shell to be pwsh / powershell
# The apps will be focused if open, or launched if not open
alt + b                 : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox }
# alt + b                 : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome }
alt + escape            : start wt

# Focus windows
alt + h                 : komorebic focus left
alt + j                 : komorebic cycle-focus next
alt + k                 : komorebic cycle-focus previous
alt + l                 : komorebic focus right
# alt + shift + oem_4     : komorebic cycle-focus previous # oem_4 is [
# alt + shift + oem_6     : komorebic cycle-focus next # oem_6 is ]

# Move windows
alt + shift + h         : komorebic move left
alt + shift + j         : komorebic move down
alt + shift + k         : komorebic move up
alt + shift + l         : komorebic move right
alt + shift + return    : komorebic promote

# Stack windows
#alt + left              : komorebic stack left
#alt + down              : komorebic stack down
#alt + up                : komorebic stack up
#alt + right             : komorebic stack right
alt + oem_1             : komorebic unstack # oem_1 is ;
alt + oem_4             : komorebic cycle-stack previous # oem_4 is [
alt + oem_6             : komorebic cycle-stack next # oem_6 is ]

# Resize
alt + oem_plus          : komorebic resize-axis horizontal increase
alt + oem_minus         : komorebic resize-axis horizontal decrease
alt + shift + oem_plus  : komorebic resize-axis vertical increase
alt + shift + oem_minus : komorebic resize-axis vertical decrease

# Manipulate windows
alt + shift + f         : komorebic toggle-float
alt + f                 : komorebic toggle-maximize
alt + shift + c         : komorebic close
alt + d                 : komorebic minimize


# Window manager options
alt + shift + r         : komorebic retile
alt + p                 : komorebic toggle-pause

# Layouts
# alt + x                 : komorebic flip-layout horizontal
# alt + y                 : komorebic flip-layout vertical

# Workspaces
alt + 1                 : komorebic focus-workspace 0
alt + 2                 : komorebic focus-workspace 1
alt + 3                 : komorebic focus-workspace 2
alt + 4                 : komorebic focus-workspace 3
alt + 5                 : komorebic focus-workspace 4
alt + w                 : komorebic focus-last-workspace

# Move windows across workspaces
alt + shift + 1         : komorebic send-to-workspace 0
alt + shift + 2         : komorebic send-to-workspace 1
alt + shift + 3         : komorebic send-to-workspace 2
alt + shift + 4         : komorebic send-to-workspace 3
alt + shift + 5         : komorebic send-to-workspace 4

Output of komorebic check

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

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

Found komorebi.json; this file can be passed to the start command with the --config flag

Found C:\Users\sujal.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag

Originally created by @gursuj on GitHub (Nov 28, 2024). ### Summary I know the bug report template says not to open issues for ghost tiles but in this case, ignoring the window causing the ghost tile is not a proper fix. Happens to me with windows terminal where, if I open multiple terminal windows and close one, the empty space isn't occupied by any other window. Running `komorebic visible-windows` shows that komorebi still thinks the closed window is still there. Example screenshot and output: ![image](https://github.com/user-attachments/assets/d61caccb-2bb0-43b3-9386-e915865f4721) ```json { "AUO723C-5&10278117&0&UID256": [ { "title": "New Issue · LGUG2Z/komorebi — Mozilla Firefox", "exe": "firefox.exe", "class": "MozillaWindowClass" }, { "title": "PowerShell", "exe": "WindowsTerminal.exe", "class": "CASCADIA_HOSTING_WINDOW_CLASS" }, { "title": "PowerShell", "exe": "WindowsTerminal.exe", "class": "CASCADIA_HOSTING_WINDOW_CLASS" } ] } ``` Moving everything off the workspace will then create a transparent window with the window title of the closed window (shown below) which can then be closed. ![image](https://github.com/user-attachments/assets/165c74ec-1268-4f8a-bbc0-58831d59a64d) Not sure if this is being caused by Windows Terminal as closing the terminal seems to kill its powershell process as well when viewing inside Task Manager. ### Version Information OS Name: Microsoft Windows 10 Home OS Version: 10.0.19045 N/A Build 19045 komorebic 0.1.30 tag:v0.1.30 commit_hash:9a3dbccc build_time:2024-11-03 23:49:52 +00:00 build_env:rustc 1.82.0 (f6e511eec 2024-10-15),stable-x86_64-pc-windows-msvc ### Komorebi Configuration ```json { "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.30/schema.json", "app_specific_configuration_path": "$Env:KOMOREBI_CONFIG_HOME/applications.json", "window_hiding_behaviour": "Cloak", "cross_monitor_move_behaviour": "Insert", "default_workspace_padding": 0, "default_container_padding": 0, "border_padding": 0, "border_offset": 0, "border_width": 2, "border": true, "border_colours": { "single": "#fff", "stack": "#00a542", "monocle": "#ff3399" }, "mouse_follows_focus": false, "monitors": [ { "workspaces": [ { "name": "1", "layout": "VerticalStack", "initial_workspace_rules": [ { "id": "emacs.exe", "kind": "Exe", "matching_strategy": "Equals" } ] }, { "name": "2", "layout": "VerticalStack", "initial_workspace_rules": [ { "id": "firefox.exe", "kind": "Exe", "matching_strategy": "Equals" } ] }, { "name": "3", "layout": "VerticalStack" }, { "name": "4", "layout": "VerticalStack" }, { "name": "5", "layout": "VerticalStack" } ] } ], "ignore_rules": [ { "kind": "Exe", "id": "Zebar.exe", "matching_strategy": "Equals" }, { "kind": "Title", "id": "[Pp]icture.in.[Pp]icture", "matching_strategy": "Regex" }, { "kind": "Title", "id": "Firefox — Sharing Indicator", "matching_strategy": "Equals" } ], "stackbar": { "height": 20, "mode": "OnStack", "tabs": { "width": 300, "focused_text": "#00a542", "unfocused_text": "#b3b3b3", "background": "#141414" } } } ``` ### Hotkey Configuration ``` .shell pwsh # Reload whkd configuration # alt + o : taskkill /f /im whkd.exe && start /b whkd # if shell is cmd alt + o : taskkill /f /im whkd.exe; Start-Process whkd -WindowStyle hidden # if shell is pwsh / powershell alt + shift + o : komorebic reload-configuration # App shortcuts - these require shell to be pwsh / powershell # The apps will be focused if open, or launched if not open alt + b : if ($wshell.AppActivate('Firefox') -eq $False) { start firefox } # alt + b : if ($wshell.AppActivate('Chrome') -eq $False) { start chrome } alt + escape : start wt # Focus windows alt + h : komorebic focus left alt + j : komorebic cycle-focus next alt + k : komorebic cycle-focus previous alt + l : komorebic focus right # alt + shift + oem_4 : komorebic cycle-focus previous # oem_4 is [ # alt + shift + oem_6 : komorebic cycle-focus next # oem_6 is ] # Move windows alt + shift + h : komorebic move left alt + shift + j : komorebic move down alt + shift + k : komorebic move up alt + shift + l : komorebic move right alt + shift + return : komorebic promote # Stack windows #alt + left : komorebic stack left #alt + down : komorebic stack down #alt + up : komorebic stack up #alt + right : komorebic stack right alt + oem_1 : komorebic unstack # oem_1 is ; alt + oem_4 : komorebic cycle-stack previous # oem_4 is [ alt + oem_6 : komorebic cycle-stack next # oem_6 is ] # Resize alt + oem_plus : komorebic resize-axis horizontal increase alt + oem_minus : komorebic resize-axis horizontal decrease alt + shift + oem_plus : komorebic resize-axis vertical increase alt + shift + oem_minus : komorebic resize-axis vertical decrease # Manipulate windows alt + shift + f : komorebic toggle-float alt + f : komorebic toggle-maximize alt + shift + c : komorebic close alt + d : komorebic minimize # Window manager options alt + shift + r : komorebic retile alt + p : komorebic toggle-pause # Layouts # alt + x : komorebic flip-layout horizontal # alt + y : komorebic flip-layout vertical # Workspaces alt + 1 : komorebic focus-workspace 0 alt + 2 : komorebic focus-workspace 1 alt + 3 : komorebic focus-workspace 2 alt + 4 : komorebic focus-workspace 3 alt + 5 : komorebic focus-workspace 4 alt + w : komorebic focus-last-workspace # Move windows across workspaces alt + shift + 1 : komorebic send-to-workspace 0 alt + shift + 2 : komorebic send-to-workspace 1 alt + shift + 3 : komorebic send-to-workspace 2 alt + shift + 4 : komorebic send-to-workspace 3 alt + shift + 5 : komorebic send-to-workspace 4 ``` ### Output of komorebic check KOMOREBI_CONFIG_HOME detected: C:\Users\sujal\.config\komorebi Looking for configuration files in C:\Users\sujal\.config\komorebi Found komorebi.json; this file can be passed to the start command with the --config flag Found C:\Users\sujal\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
adam added the bug label 2026-01-05 14:51:22 +01:00
adam closed this issue 2026-01-05 14:51:22 +01:00
Author
Owner

@gursuj commented on GitHub (Nov 28, 2024):

Issue has been reported by someone else in this discord thread, though with something other than windows terminal

@gursuj commented on GitHub (Nov 28, 2024): Issue has been reported by someone else in this [discord thread](https://discord.com/channels/898554690126630914/1301907148183175179), though with something other than windows terminal
Author
Owner

@LGUG2Z commented on GitHub (Nov 28, 2024):

I'm not able to reproduce this with Windows Terminal 🤔 - I wonder if this is something specific to Windows 10

@LGUG2Z commented on GitHub (Nov 28, 2024): I'm not able to reproduce this with Windows Terminal 🤔 - I wonder if this is something specific to Windows 10
Author
Owner

@alex-ds13 commented on GitHub (Nov 28, 2024):

This might be related to this issue on Windows terminal https://github.com/microsoft/terminal/issues/17298.

How exactly are you closing the window? To me after closing the window it takes a second but then the ghost tile and border disappears. This is because the workaround for the issue above is having a thread going on every second checking for this kind of windows and remove them. That's why it takes a few milliseconds to a second but it always removes them. There is even a line on the logs saying:

 INFO komorebi::reaper: reaped 1 orphan window(s) and 0 orphaned container(s) on monitor: 0, workspace: 4

Can you check your logs to see if the line above ever shows after you close it?

@alex-ds13 commented on GitHub (Nov 28, 2024): This might be related to this issue on Windows terminal https://github.com/microsoft/terminal/issues/17298. How exactly are you closing the window? To me after closing the window it takes a second but then the ghost tile and border disappears. This is because the workaround for the issue above is having a thread going on every second checking for this kind of windows and remove them. That's why it takes a few milliseconds to a second but it always removes them. There is even a line on the logs saying: ``` INFO komorebi::reaper: reaped 1 orphan window(s) and 0 orphaned container(s) on monitor: 0, workspace: 4 ``` Can you check your logs to see if the line above ever shows after you close it?
Author
Owner

@gursuj commented on GitHub (Nov 29, 2024):

Didn't find anything related to reaper in the logs. Komorebi doesn't seem to create the log file for me so I used the log command and got these logs when closing the terminal window.

2024-11-29T02:50:37.538196Z  INFO process_command{Close}: komorebi::process_command: processed
2024-11-29T02:50:37.567411Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1640544}: komorebi::process_event: processed: (hwnd: 1640544, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-29T02:50:37.576579Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-29T02:50:37.580030Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-29T02:50:37.581216Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-11-29T02:50:37.584954Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}: komorebi::process_event: processed: (hwnd: 1048988, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)

This behavior was fixed for me a while back but again started happening randomly. Happens when using both the close button for the window as well as the whkd binding

@gursuj commented on GitHub (Nov 29, 2024): Didn't find anything related to reaper in the logs. Komorebi doesn't seem to create the log file for me so I used the log command and got these logs when closing the terminal window. ``` 2024-11-29T02:50:37.538196Z INFO process_command{Close}: komorebi::process_command: processed 2024-11-29T02:50:37.567411Z INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1640544}: komorebi::process_event: processed: (hwnd: 1640544, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-29T02:50:37.576579Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-29T02:50:37.580030Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_window{idx=0}: komorebi::container: focusing window 2024-11-29T02:50:37.581216Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_container{idx=1}: komorebi::workspace: focusing container 2024-11-29T02:50:37.584954Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}: komorebi::process_event: processed: (hwnd: 1048988, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) ``` This behavior was fixed for me a while back but again started happening randomly. Happens when using both the close button for the window as well as the whkd binding
Author
Owner

@gursuj commented on GitHub (Nov 29, 2024):

To me after closing the window it takes a second but then the ghost tile and border disappears.

If I have only one terminal open and close it, this happens and the empty space is reclaimed after a second. But if I have two terminals open and close one, its empty space creates a lingering ghost tile.

@gursuj commented on GitHub (Nov 29, 2024): > To me after closing the window it takes a second but then the ghost tile and border disappears. If I have only one terminal open and close it, this happens and the empty space is reclaimed after a second. But if I have two terminals open and close one, its empty space creates a lingering ghost tile.
Author
Owner

@alex-ds13 commented on GitHub (Nov 29, 2024):

Didn't find anything related to reaper in the logs. Komorebi doesn't seem to create the log file for me so I used the log command and got these logs when closing the terminal window.

2024-11-29T02:50:37.538196Z  INFO process_command{Close}: komorebi::process_command: processed
2024-11-29T02:50:37.567411Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1640544}: komorebi::process_event: processed: (hwnd: 1640544, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-29T02:50:37.576579Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-29T02:50:37.580030Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-29T02:50:37.581216Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-11-29T02:50:37.584954Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}: komorebi::process_event: processed: (hwnd: 1048988, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)

This behavior was fixed for me a while back but again started happening randomly. Happens when using both the close button for the window as well as the whkd binding

The logs are kept on %LOCALAPPDATA%/TEMP or simply %TEMP%. There will be some files with name starting with komorebi with the day which the log relates to. You want to see the files that have plaintext on them. Search them for the term komorebi::reaper.

It seems to me that the reaper thread has stopped for some reason. @LGUG2Z there should be a "reaped 1 orphan window" above on those logs after closing windows terminal, right?

There should be some error in the logs saying what happened. The repear thread should restart itself even if there is an error, so it would be important to get those logs to understand exactly what might have happened.

@alex-ds13 commented on GitHub (Nov 29, 2024): > Didn't find anything related to reaper in the logs. Komorebi doesn't seem to create the log file for me so I used the log command and got these logs when closing the terminal window. > > ``` > 2024-11-29T02:50:37.538196Z INFO process_command{Close}: komorebi::process_command: processed > 2024-11-29T02:50:37.567411Z INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1640544}: komorebi::process_event: processed: (hwnd: 1640544, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) > 2024-11-29T02:50:37.576579Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating > 2024-11-29T02:50:37.580030Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_window{idx=0}: komorebi::container: focusing window > 2024-11-29T02:50:37.581216Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}:focus_container{idx=1}: komorebi::workspace: focusing container > 2024-11-29T02:50:37.584954Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1048988}: komorebi::process_event: processed: (hwnd: 1048988, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) > ``` > > This behavior was fixed for me a while back but again started happening randomly. Happens when using both the close button for the window as well as the whkd binding The logs are kept on `%LOCALAPPDATA%/TEMP` or simply `%TEMP%`. There will be some files with name starting with komorebi with the day which the log relates to. You want to see the files that have `plaintext` on them. Search them for the term `komorebi::reaper`. It seems to me that the reaper thread has stopped for some reason. @LGUG2Z there should be a `"reaped 1 orphan window"` above on those logs after closing windows terminal, right? There should be some error in the logs saying what happened. The repear thread should restart itself even if there is an error, so it would be important to get those logs to understand exactly what might have happened.
Author
Owner

@gursuj commented on GitHub (Nov 30, 2024):

Ah, thanks. I was looking for logs in the komorebi folder inside localappdata. These are the logs when closing only one of the two terminals (no reaper reaped log but there is an error):

2024-11-30T15:47:05.783853Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass)
2024-11-30T15:47:06.284989Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass)
2024-11-30T15:47:09.396163Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=263606}: komorebi::process_event: processed: (hwnd: 263606)
2024-11-30T15:47:10.604340Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass)
2024-11-30T15:47:12.397028Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:47:12.491044Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460574}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:47:12.491925Z ERROR komorebi::process_event: there is no container/window
2024-11-30T15:47:12.511307Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:47:12.626349Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:47:12.630659Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}:focus_container{idx=2}: komorebi::workspace: focusing container
2024-11-30T15:47:12.633758Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:47:12.650508Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:47:13.816723Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass)
2024-11-30T15:47:15.748179Z  INFO process_command{Close}: komorebi::process_command: processed
2024-11-30T15:47:15.759371Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:47:15.761485Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:47:15.762480Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:47:15.764684Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-11-30T15:47:15.771853Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}: komorebi::process_event: processed: (hwnd: 591070, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)

These are the logs when opening 2 terminal windows, then closing both of them. Reaper does seem to trigger when I close both of the open terminals and then the space is reclaimed. Note: I have a floating nvim window open that I switch to at the end.

2024-11-30T15:51:33.865886Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:33.948545Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:51:33.949044Z ERROR komorebi::process_event: there is no container/window
2024-11-30T15:51:33.969071Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:34.091848Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:51:34.093616Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-11-30T15:51:34.094703Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:51:34.105165Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:35.366267Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass)
2024-11-30T15:51:36.431701Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:36.482544Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=329398}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:51:36.483486Z ERROR komorebi::process_event: there is no container/window
2024-11-30T15:51:36.504657Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:36.600923Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:51:36.601760Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}:focus_container{idx=2}: komorebi::workspace: focusing container
2024-11-30T15:51:36.602249Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:51:36.612960Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:37.782403Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass)
2024-11-30T15:51:38.617775Z  INFO process_command{Close}: komorebi::process_command: processed
2024-11-30T15:51:38.633278Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:38.636062Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:51:38.638224Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:51:38.639920Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-11-30T15:51:38.648857Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:40.834409Z  INFO process_command{Close}: komorebi::process_command: processed
2024-11-30T15:51:40.850291Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-11-30T15:51:40.854171Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-11-30T15:51:40.861406Z ERROR komorebi::process_event: The parameter is incorrect. (0x80070057)
2024-11-30T15:51:40.866119Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.867331Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.868936Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.876793Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.878315Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.879185Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.881466Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.883087Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.883747Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.884247Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.884819Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.885504Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.886096Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.886531Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.887292Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.888011Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.889490Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.890065Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.890814Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.891709Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.892450Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.893054Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.893743Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.894164Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.894829Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.895564Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.896142Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.896939Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.897495Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.897961Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.898590Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.899418Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.899974Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.900463Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.901207Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.901830Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.902459Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.902970Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.903679Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.904292Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.904880Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.905803Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.906595Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.907361Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.907981Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.908724Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.909486Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.910131Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.910827Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.911741Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.912516Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.913411Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.914330Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.915352Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.916034Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.916519Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.917252Z  INFO focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:51:40.917638Z  WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578)
2024-11-30T15:51:40.918232Z  INFO focus_container{idx=0}: komorebi::workspace: focusing container
2024-11-30T15:51:40.918662Z  INFO komorebi::border_manager: listening
2024-11-30T15:51:40.919174Z  INFO focus_window{idx=0}: komorebi::container: focusing window
2024-11-30T15:51:40.919633Z  INFO focus_container{idx=0}: komorebi::workspace: focusing container
2024-11-30T15:51:40.928359Z  INFO komorebi::reaper: reaped 2 orphan window(s) and 0 orphaned container(s) on monitor: 0, workspace: 1
@gursuj commented on GitHub (Nov 30, 2024): Ah, thanks. I was looking for logs in the komorebi folder inside localappdata. These are the logs when closing only one of the two terminals (no reaper reaped log but there is an error): ``` 2024-11-30T15:47:05.783853Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass) 2024-11-30T15:47:06.284989Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass) 2024-11-30T15:47:09.396163Z INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=263606}: komorebi::process_event: processed: (hwnd: 263606) 2024-11-30T15:47:10.604340Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass) 2024-11-30T15:47:12.397028Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:47:12.491044Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460574}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:47:12.491925Z ERROR komorebi::process_event: there is no container/window 2024-11-30T15:47:12.511307Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:47:12.626349Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}:focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:47:12.630659Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}:focus_container{idx=2}: komorebi::workspace: focusing container 2024-11-30T15:47:12.633758Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:47:12.650508Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:47:13.816723Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass) 2024-11-30T15:47:15.748179Z INFO process_command{Close}: komorebi::process_command: processed 2024-11-30T15:47:15.759371Z INFO process_event{event="Hide" winevent="ObjectHide" hwnd=460574}: komorebi::process_event: processed: (hwnd: 460574, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:47:15.761485Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:47:15.762480Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:47:15.764684Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:focus_container{idx=1}: komorebi::workspace: focusing container 2024-11-30T15:47:15.771853Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}: komorebi::process_event: processed: (hwnd: 591070, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) ``` These are the logs when opening 2 terminal windows, then closing both of them. Reaper does seem to trigger when I close both of the open terminals and then the space is reclaimed. Note: I have a floating nvim window open that I switch to at the end. ``` 2024-11-30T15:51:33.865886Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:33.948545Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:51:33.949044Z ERROR komorebi::process_event: there is no container/window 2024-11-30T15:51:33.969071Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:34.091848Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}:focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:51:34.093616Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}:focus_container{idx=1}: komorebi::workspace: focusing container 2024-11-30T15:51:34.094703Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:51:34.105165Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:35.366267Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass) 2024-11-30T15:51:36.431701Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:36.482544Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=329398}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:51:36.483486Z ERROR komorebi::process_event: there is no container/window 2024-11-30T15:51:36.504657Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:36.600923Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}:focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:51:36.601760Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}:focus_container{idx=2}: komorebi::workspace: focusing container 2024-11-30T15:51:36.602249Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:51:36.612960Z INFO process_event{event="Show" winevent="ObjectShow" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:37.782403Z INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=525300}: komorebi::process_event: processed: (hwnd: 525300, title: Temp, exe: explorer.exe, class: CabinetWClass) 2024-11-30T15:51:38.617775Z INFO process_command{Close}: komorebi::process_command: processed 2024-11-30T15:51:38.633278Z INFO process_event{event="Hide" winevent="ObjectHide" hwnd=329398}: komorebi::process_event: processed: (hwnd: 329398, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:38.636062Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:51:38.638224Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:51:38.639920Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}:focus_container{idx=1}: komorebi::workspace: focusing container 2024-11-30T15:51:38.648857Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:40.834409Z INFO process_command{Close}: komorebi::process_command: processed 2024-11-30T15:51:40.850291Z INFO process_event{event="Hide" winevent="ObjectHide" hwnd=460222}: komorebi::process_event: processed: (hwnd: 460222, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-11-30T15:51:40.854171Z INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=591070}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-11-30T15:51:40.861406Z ERROR komorebi::process_event: The parameter is incorrect. (0x80070057) 2024-11-30T15:51:40.866119Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.867331Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.868936Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.876793Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.878315Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.879185Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.881466Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.883087Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.883747Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.884247Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.884819Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.885504Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.886096Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.886531Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.887292Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.888011Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.889490Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.890065Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.890814Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.891709Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.892450Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.893054Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.893743Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.894164Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.894829Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.895564Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.896142Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.896939Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.897495Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.897961Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.898590Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.899418Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.899974Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.900463Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.901207Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.901830Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.902459Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.902970Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.903679Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.904292Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.904880Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.905803Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.906595Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.907361Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.907981Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.908724Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.909486Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.910131Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.910827Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.911741Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.912516Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.913411Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.914330Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.915352Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.916034Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.916519Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.917252Z INFO focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:51:40.917638Z WARN komorebi::border_manager: restarting failed thread: Invalid window handle. (0x80070578) 2024-11-30T15:51:40.918232Z INFO focus_container{idx=0}: komorebi::workspace: focusing container 2024-11-30T15:51:40.918662Z INFO komorebi::border_manager: listening 2024-11-30T15:51:40.919174Z INFO focus_window{idx=0}: komorebi::container: focusing window 2024-11-30T15:51:40.919633Z INFO focus_container{idx=0}: komorebi::workspace: focusing container 2024-11-30T15:51:40.928359Z INFO komorebi::reaper: reaped 2 orphan window(s) and 0 orphaned container(s) on monitor: 0, workspace: 1 ```
Author
Owner

@gursuj commented on GitHub (Dec 1, 2024):

Also found another strange behavior with windows terminal. Steps to recreate:

  1. Have 2 windows in a workspace with one being windows terminal
  2. maximize the terminal, then close it

This leaves a transparent window with the same titlebar as the closed terminal, like so:
image

This behavior seems kinda unpredictable as when I first encountered this, it didn't leave a transparent window but only a ghost tile that could be fixed by maximizing, then unmaximizing the non-terminal window. I started testing it and then the transparent window started appearing.

Logs recorded after opening a terminal, maximizing, closing it. At the end, I minimize the transparent window and switch to a floating nvim window

2024-12-01T01:41:50.713737Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=394678}: komorebi::process_event: processed: (hwnd: 394678)
2024-12-01T01:41:51.626922Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window: komorebi::window_manager: maximizing windowj
2024-12-01T01:41:51.627432Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_window{idx=0}: komorebi::container: focusing window
2024-12-01T01:41:51.634703Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_container{idx=0}: komorebi::workspace: focusing container
2024-12-01T01:41:51.635894Z  INFO process_command{ToggleMaximize}:toggle_maximize:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:41:51.637803Z  INFO process_command{ToggleMaximize}: komorebi::process_command: processed
2024-12-01T01:41:53.091635Z  INFO process_command{ToggleMaximize}:toggle_maximize:unmaximize_window: komorebi::window_manager: unmaximizing window
2024-12-01T01:41:53.092124Z  INFO process_command{ToggleMaximize}:toggle_maximize:unmaximize_window:focus_container{idx=1}: komorebi::workspace: focusing container
2024-12-01T01:41:53.094438Z  INFO process_command{ToggleMaximize}:toggle_maximize:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:41:53.102089Z  INFO process_command{ToggleMaximize}: komorebi::process_command: processed
2024-12-01T01:41:54.242771Z  INFO process_command{ToggleFloat}:toggle_float:float_window: komorebi::window_manager: floating window
2024-12-01T01:41:54.243297Z  INFO process_command{ToggleFloat}:toggle_float:float_window:focus_window{idx=0}: komorebi::container: focusing window
2024-12-01T01:41:54.243846Z  INFO process_command{ToggleFloat}:toggle_float:float_window:focus_container{idx=0}: komorebi::workspace: focusing container
2024-12-01T01:41:54.246418Z  INFO process_command{ToggleFloat}:toggle_float:update_focused_workspace{follow_focus=false trigger_focus=true}: komorebi::window_manager: updating
2024-12-01T01:41:54.254297Z  INFO process_command{ToggleFloat}: komorebi::process_command: processed
2024-12-01T01:41:55.548514Z  INFO process_event{event="MoveResizeStart" winevent="SystemMoveSizeStart" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:41:56.106999Z  INFO process_event{event="MoveResizeEnd" winevent="SystemMoveSizeEnd" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:05.871629Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:05.947895Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:05.948404Z ERROR komorebi::process_event: there is no container/window
2024-12-01T01:42:05.970905Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:06.062023Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}:focus_window{idx=0}: komorebi::container: focusing window
2024-12-01T01:42:06.062715Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-12-01T01:42:06.063681Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:06.072569Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:06.413267Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=198160}: komorebi::process_event: processed: (hwnd: 198160)
2024-12-01T01:42:11.593984Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window: komorebi::window_manager: maximizing windowj
2024-12-01T01:42:11.594569Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_window{idx=0}: komorebi::container: focusing window
2024-12-01T01:42:11.598582Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_container{idx=0}: komorebi::workspace: focusing container
2024-12-01T01:42:11.599602Z  INFO process_command{ToggleMaximize}:toggle_maximize:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:11.601080Z  INFO process_command{ToggleMaximize}: komorebi::process_command: processed
2024-12-01T01:42:13.493694Z  INFO process_command{Close}: komorebi::process_command: processed
2024-12-01T01:42:13.508754Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:13.512715Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:13.560486Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:13.564014Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:22.501676Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:34.468279Z  INFO process_event{event="Minimize" winevent="SystemMinimizeStart" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:34.481703Z  INFO process_event{event="Minimize" winevent="SystemMinimizeStart" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:34.483921Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:34.501650Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-12-01T01:42:34.520368Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:34.521501Z ERROR komorebi::process_event: there is no container/window
2024-12-01T01:42:34.526780Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}:focus_window{idx=0}: komorebi::container: focusing window
2024-12-01T01:42:34.527911Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-12-01T01:42:34.530816Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-12-01T01:42:34.555550Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
@gursuj commented on GitHub (Dec 1, 2024): Also found another strange behavior with windows terminal. Steps to recreate: 1) Have 2 windows in a workspace with one being windows terminal 2) maximize the terminal, then close it This leaves a transparent window with the same titlebar as the closed terminal, like so: ![image](https://github.com/user-attachments/assets/064e76da-0a73-4b4f-aebc-d621070d0670) This behavior seems kinda unpredictable as when I first encountered this, it didn't leave a transparent window but only a ghost tile that could be fixed by maximizing, then unmaximizing the non-terminal window. I started testing it and then the transparent window started appearing. Logs recorded after opening a terminal, maximizing, closing it. At the end, I minimize the transparent window and switch to a floating nvim window ``` 2024-12-01T01:41:50.713737Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=394678}: komorebi::process_event: processed: (hwnd: 394678) 2024-12-01T01:41:51.626922Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window: komorebi::window_manager: maximizing windowj 2024-12-01T01:41:51.627432Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_window{idx=0}: komorebi::container: focusing window 2024-12-01T01:41:51.634703Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_container{idx=0}: komorebi::workspace: focusing container 2024-12-01T01:41:51.635894Z  INFO process_command{ToggleMaximize}:toggle_maximize:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:41:51.637803Z  INFO process_command{ToggleMaximize}: komorebi::process_command: processed 2024-12-01T01:41:53.091635Z  INFO process_command{ToggleMaximize}:toggle_maximize:unmaximize_window: komorebi::window_manager: unmaximizing window 2024-12-01T01:41:53.092124Z  INFO process_command{ToggleMaximize}:toggle_maximize:unmaximize_window:focus_container{idx=1}: komorebi::workspace: focusing container 2024-12-01T01:41:53.094438Z  INFO process_command{ToggleMaximize}:toggle_maximize:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:41:53.102089Z  INFO process_command{ToggleMaximize}: komorebi::process_command: processed 2024-12-01T01:41:54.242771Z  INFO process_command{ToggleFloat}:toggle_float:float_window: komorebi::window_manager: floating window 2024-12-01T01:41:54.243297Z  INFO process_command{ToggleFloat}:toggle_float:float_window:focus_window{idx=0}: komorebi::container: focusing window 2024-12-01T01:41:54.243846Z  INFO process_command{ToggleFloat}:toggle_float:float_window:focus_container{idx=0}: komorebi::workspace: focusing container 2024-12-01T01:41:54.246418Z  INFO process_command{ToggleFloat}:toggle_float:update_focused_workspace{follow_focus=false trigger_focus=true}: komorebi::window_manager: updating 2024-12-01T01:41:54.254297Z  INFO process_command{ToggleFloat}: komorebi::process_command: processed 2024-12-01T01:41:55.548514Z  INFO process_event{event="MoveResizeStart" winevent="SystemMoveSizeStart" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:41:56.106999Z  INFO process_event{event="MoveResizeEnd" winevent="SystemMoveSizeEnd" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:05.871629Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: Terminal, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:05.947895Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:05.948404Z ERROR komorebi::process_event: there is no container/window 2024-12-01T01:42:05.970905Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:06.062023Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}:focus_window{idx=0}: komorebi::container: focusing window 2024-12-01T01:42:06.062715Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}:focus_container{idx=1}: komorebi::workspace: focusing container 2024-12-01T01:42:06.063681Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:06.072569Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:06.413267Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=198160}: komorebi::process_event: processed: (hwnd: 198160) 2024-12-01T01:42:11.593984Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window: komorebi::window_manager: maximizing windowj 2024-12-01T01:42:11.594569Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_window{idx=0}: komorebi::container: focusing window 2024-12-01T01:42:11.598582Z  INFO process_command{ToggleMaximize}:toggle_maximize:maximize_window:focus_container{idx=0}: komorebi::workspace: focusing container 2024-12-01T01:42:11.599602Z  INFO process_command{ToggleMaximize}:toggle_maximize:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:11.601080Z  INFO process_command{ToggleMaximize}: komorebi::process_command: processed 2024-12-01T01:42:13.493694Z  INFO process_command{Close}: komorebi::process_command: processed 2024-12-01T01:42:13.508754Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:13.512715Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:13.560486Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:13.564014Z  INFO process_event{event="Show" winevent="ObjectShow" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:22.501676Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:34.468279Z  INFO process_event{event="Minimize" winevent="SystemMinimizeStart" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:34.481703Z  INFO process_event{event="Minimize" winevent="SystemMinimizeStart" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:34.483921Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:34.501650Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=67140}: komorebi::process_event: processed: (hwnd: 67140, title: C:\tools\neovim\nvim-win64\bin\nvim.exe, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) 2024-12-01T01:42:34.520368Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:34.521501Z ERROR komorebi::process_event: there is no container/window 2024-12-01T01:42:34.526780Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}:focus_window{idx=0}: komorebi::container: focusing window 2024-12-01T01:42:34.527911Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}:focus_container{idx=1}: komorebi::workspace: focusing container 2024-12-01T01:42:34.530816Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating 2024-12-01T01:42:34.555550Z  INFO process_event{event="Show" winevent="SystemMinimizeEnd" hwnd=15009036}: komorebi::process_event: processed: (hwnd: 15009036, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS) ```
Author
Owner

@cjpack123 commented on GitHub (Dec 26, 2024):

This is happening to me on windows 11. Or sorta similar, some windows when I try to close by clicking on the X will leave a ghost tile with a border (maybe it does for you but you have it turned off) Things I noticed:

Doesnt happen if I use alt Q to close the window.
Happens usually with windows that would usually get closed but stay running in the sys tray. Windows terminal, icloud windows, autohotkey are all ones I recall it happening to.
The window isn't actually closed and will display the contents within the border again if I cycle focus to it, only way I know how to do that.

The issue is alt q closes not only the window but also closes it from the sys I dont know how to close the window but leave it running in sys tray. I only know close entirely or minimize window.

@cjpack123 commented on GitHub (Dec 26, 2024): This is happening to me on windows 11. Or sorta similar, some windows when I try to close by clicking on the X will leave a ghost tile with a border (maybe it does for you but you have it turned off) Things I noticed: Doesnt happen if I use alt Q to close the window. Happens usually with windows that would usually get closed but stay running in the sys tray. Windows terminal, icloud windows, autohotkey are all ones I recall it happening to. The window isn't actually closed and will display the contents within the border again if I cycle focus to it, only way I know how to do that. The issue is alt q closes not only the window but also closes it from the sys I dont know how to close the window but leave it running in sys tray. I only know close entirely or minimize window.
Author
Owner

@gursuj commented on GitHub (Dec 26, 2024):

Doesnt happen if I use alt Q to close the window. Happens usually with windows that would usually get closed but stay running in the sys tray. Windows terminal, icloud windows, autohotkey are all ones I recall it happening to.

Hmm what are you binding alt+q to? Or are you using the default shortcut where its set to komorebic close? For me, the bug happens even when using this shortcut.

The issue is alt q closes not only the window but also closes it from the sys I dont know how to close the window but leave it running in sys tray. I only know close entirely or minimize window.

Strange. I think this is a bug with the specific apps you use, rather than with komorebi. I tested this and qbittorrent properly exits to the system tray but laragon closes entirely when using the shortcut. If I use the close button, then laragon exits to the tray. Also, I don't think windows terminal is supposed to exit to the tray.

@gursuj commented on GitHub (Dec 26, 2024): > Doesnt happen if I use alt Q to close the window. Happens usually with windows that would usually get closed but stay running in the sys tray. Windows terminal, icloud windows, autohotkey are all ones I recall it happening to. Hmm what are you binding alt+q to? Or are you using the default shortcut where its set to `komorebic close`? For me, the bug happens even when using this shortcut. > The issue is alt q closes not only the window but also closes it from the sys I dont know how to close the window but leave it running in sys tray. I only know close entirely or minimize window. Strange. I think this is a bug with the specific apps you use, rather than with komorebi. I tested this and qbittorrent properly exits to the system tray but laragon closes entirely when using the shortcut. If I use the close button, then laragon exits to the tray. Also, I don't think windows terminal is supposed to exit to the tray.
Author
Owner

@ramppdev commented on GitHub (Jan 2, 2025):

Adding the following to the komorebi.json seems to solve the issue:

{
  "tray_and_multi_window_applications": [
    {
      "kind": "Exe",
      "id": "WindowsTerminal.exe",
      "matching_strategy": "Equals"
    }
  ]
}
@ramppdev commented on GitHub (Jan 2, 2025): Adding the following to the `komorebi.json` seems to solve the issue: ```json { "tray_and_multi_window_applications": [ { "kind": "Exe", "id": "WindowsTerminal.exe", "matching_strategy": "Equals" } ] } ```
Author
Owner

@gursuj commented on GitHub (Jan 3, 2025):

@ramppdev Thanks, that worked. @cjpack123 can you check if this works for you? If so, this issue may be closed

@gursuj commented on GitHub (Jan 3, 2025): @ramppdev Thanks, that worked. @cjpack123 can you check if this works for you? If so, this issue may be closed
Author
Owner

@ramppdev commented on GitHub (Jan 3, 2025):

@dinesh-58 sound good. Before closing you could open an issue in https://github.com/LGUG2Z/komorebi-application-specific-configuration such that it will work for everyone in future versions :)

@ramppdev commented on GitHub (Jan 3, 2025): @dinesh-58 sound good. Before closing you could open an issue in https://github.com/LGUG2Z/komorebi-application-specific-configuration such that it will work for everyone in future versions :)
Author
Owner

@gursuj commented on GitHub (Jan 3, 2025):

Good idea. Thanks

@gursuj commented on GitHub (Jan 3, 2025): Good idea. Thanks
Author
Owner

@gursuj commented on GitHub (Jan 3, 2025):

Update: I tried adding laragon to tray_and_multi_window_applications rules but seems it still has the issue of closing entirely instead of closing to the tray. So I guess that's an issue with laragon itself? So this fix might not work for the programs mentioned by cjpack.

@gursuj commented on GitHub (Jan 3, 2025): Update: I tried adding laragon to `tray_and_multi_window_applications` rules but seems it still has the issue of closing entirely instead of closing to the tray. So I guess that's an issue with laragon itself? So this fix might not work for the programs mentioned by cjpack.
Author
Owner

@ramppdev commented on GitHub (Jan 3, 2025):

I think the issue they are experiencing is unrelated to the windows terminal one, as the tray_and_multi_window_applications should fully close the application. We just want to remove the ghost tiles and not "minimize" / close to the system tray.

@ramppdev commented on GitHub (Jan 3, 2025): I think the issue they are experiencing is unrelated to the windows terminal one, as the `tray_and_multi_window_applications` should fully close the application. We just want to remove the ghost tiles and not "minimize" / close to the system tray.
Author
Owner

@gursuj commented on GitHub (Jan 3, 2025):

Makes sense. I read the documentation for tray_and_multi_window_applications and that also says this rule is meant for ghost tiles only. Guess I'll open a separate issue for this.

@gursuj commented on GitHub (Jan 3, 2025): Makes sense. I read the documentation for `tray_and_multi_window_applications` and that also says this rule is meant for ghost tiles only. Guess I'll open a separate issue for this.
Author
Owner

@alex-ds13 commented on GitHub (Jan 7, 2025):

@dinesh-58 @ramppdev Is it possible that you are using a setting on Windows Terminal called "Hide Terminal in the notification area when it's minimized" or the "Always display an icon on the notification area" on the Appearance tab of Windows Terminal settings?

@alex-ds13 commented on GitHub (Jan 7, 2025): @dinesh-58 @ramppdev Is it possible that you are using a setting on Windows Terminal called "Hide Terminal in the notification area when it's minimized" or the "Always display an icon on the notification area" on the `Appearance` tab of Windows Terminal settings?
Author
Owner

@gursuj commented on GitHub (Jan 7, 2025):

This issue has been fixed actually. I was just waiting on cjpack to reply. I'll close this

@gursuj commented on GitHub (Jan 7, 2025): This issue has been fixed actually. I was just waiting on cjpack to reply. I'll close this
Author
Owner

@cjpack123 commented on GitHub (Jan 11, 2025):

That worked thanks! Sorry didn’t see this.

On Tue, Jan 7, 2025 at 2:20 AM Sujal Gurung @.***>
wrote:

Closed #1152 https://github.com/LGUG2Z/komorebi/issues/1152 as
completed.


Reply to this email directly, view it on GitHub
https://github.com/LGUG2Z/komorebi/issues/1152#event-15835961998, or
unsubscribe
https://github.com/notifications/unsubscribe-auth/BGHDLULTG6BIIZXYPMNJC6L2JOL5HAVCNFSM6AAAAABSUEXIJOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVHAZTKOJWGE4TSOA
.
You are receiving this because you were mentioned.Message ID:
@.***>

@cjpack123 commented on GitHub (Jan 11, 2025): That worked thanks! Sorry didn’t see this. On Tue, Jan 7, 2025 at 2:20 AM Sujal Gurung ***@***.***> wrote: > Closed #1152 <https://github.com/LGUG2Z/komorebi/issues/1152> as > completed. > > — > Reply to this email directly, view it on GitHub > <https://github.com/LGUG2Z/komorebi/issues/1152#event-15835961998>, or > unsubscribe > <https://github.com/notifications/unsubscribe-auth/BGHDLULTG6BIIZXYPMNJC6L2JOL5HAVCNFSM6AAAAABSUEXIJOVHI2DSMVQWIX3LMV45UABCJFZXG5LFIV3GK3TUJZXXI2LGNFRWC5DJN5XDWMJVHAZTKOJWGE4TSOA> > . > You are receiving this because you were mentioned.Message ID: > ***@***.***> >
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/komorebi#536