Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG]: Komorebi incompatible with Groupy 2 #1045

Open
Andrew6rant opened this issue Oct 12, 2024 · 6 comments
Open

[BUG]: Komorebi incompatible with Groupy 2 #1045

Andrew6rant opened this issue Oct 12, 2024 · 6 comments
Labels
bug Something isn't working

Comments

@Andrew6rant
Copy link

Summary

komorebi_groupy2_compat.mp4

Groupy 2 allows me to have tabs in the file explorer on Windows 10. Unfortunately, trying to switch between tabs makes Komorebi mistakenly believe that each tab should have its own window. Is there some way to use float rules to ignore >1 instance of a window? They're all just explorer.exe.

Version Information

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

komorebic 0.1.29
tag:v0.1.29
commit_hash:818ac340
build_time:2024-09-28 01:48:31 +00:00
build_env:rustc 1.81.0 (eeb90cda1 2024-09-04),stable-x86_64-pc-windows-msvc

Komorebi Configuration

{
  "$schema": "https://raw.githubusercontent.com/LGUG2Z/komorebi/v0.1.29/schema.json",
  "app_specific_configuration_path": "$Env:USERPROFILE/applications.yaml",
  "window_hiding_behaviour": "Cloak",
  "cross_monitor_move_behaviour": "Insert",
  "default_workspace_padding": 0,
  "default_container_padding": 2,
  "border": true,
  "border_width": 4,
  "border_offset": -1,
  "theme": {
    "palette": "Base16",
    "name": "Ashes",
    "unfocused_border": "Base03",
    "bar_accent": "Base0D"
  },
  "stackbar": {
    "height": 0,
    "mode": "OnStack",
    "tabs": {
      "width": 300
    }
  },
  "monitors": [
    {
      "workspaces": [
        {
          "name": "I",
          "layout": "BSP"
        },
        {
          "name": "II",
          "layout": "VerticalStack"
        },
        {
          "name": "III",
          "layout": "HorizontalStack"
        },
        {
          "name": "IV",
          "layout": "UltrawideVerticalStack"
        },
        {
          "name": "V",
          "layout": "Rows"
        },
        {
          "name": "VI",
          "layout": "Grid"
        },
        {
          "name": "VII",
          "layout": "RightMainVerticalStack"
        }
      ]
    }
  ]
}

Hotkey Configuration

#Requires AutoHotkey v2.0.2
#SingleInstance Force

Komorebic(cmd) {
    RunWait(format("komorebic.exe {}", cmd), , "Hide")
}

!q::Komorebic("close")
!m::Komorebic("minimize")

; Focus windows
!h::Komorebic("focus left")
!j::Komorebic("focus down")
!k::Komorebic("focus up")
!l::Komorebic("focus right")

!+[::Komorebic("cycle-focus previous")
!+]::Komorebic("cycle-focus next")

; Move windows
!+h::Komorebic("move left")
!+j::Komorebic("move down")
!+k::Komorebic("move up")
!+l::Komorebic("move right")

; Stack windows
!Left::Komorebic("stack left")
!Down::Komorebic("stack down")
!Up::Komorebic("stack up")
!Right::Komorebic("stack right")
!;::Komorebic("unstack")
![::Komorebic("cycle-stack previous")
!]::Komorebic("cycle-stack next")

; Resize
!=::Komorebic("resize-axis horizontal increase")
!-::Komorebic("resize-axis horizontal decrease")
!+=::Komorebic("resize-axis vertical increase")
!+_::Komorebic("resize-axis vertical decrease")

; Manipulate windows
!t::Komorebic("toggle-float")
!f::Komorebic("toggle-monocle")

; Window manager options
!+r::Komorebic("retile")
!p::Komorebic("toggle-pause")

; Layouts
!x::Komorebic("flip-layout horizontal")
!y::Komorebic("flip-layout vertical")

; Workspaces
!1::Komorebic("focus-workspace 0")
!2::Komorebic("focus-workspace 1")
!3::Komorebic("focus-workspace 2")
!4::Komorebic("focus-workspace 3")
!5::Komorebic("focus-workspace 4")
!6::Komorebic("focus-workspace 5")
!7::Komorebic("focus-workspace 6")
!8::Komorebic("focus-workspace 7")

; Move windows across workspaces
!+1::Komorebic("move-to-workspace 0")
!+2::Komorebic("move-to-workspace 1")
!+3::Komorebic("move-to-workspace 2")
!+4::Komorebic("move-to-workspace 3")
!+5::Komorebic("move-to-workspace 4")
!+6::Komorebic("move-to-workspace 5")
!+7::Komorebic("move-to-workspace 6")
!+8::Komorebic("move-to-workspace 7")

Output of komorebic check

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

Looking for configuration files in C:\Users\Andrew

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

Found C:\Users\Andrew\.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
@Andrew6rant Andrew6rant added the bug Something isn't working label Oct 12, 2024
@LGUG2Z
Copy link
Owner

LGUG2Z commented Oct 12, 2024

I think you should be able to avoid this behaviour by specifying explorer.exe in this list: https://komorebi.lgug2z.com/schema#tray_and_multi_window_applications

@Andrew6rant
Copy link
Author

Andrew6rant commented Oct 13, 2024

Ah, I forgot to mention in my original post, I did try tray_and_multi_window_applications (didn't work):

"tray_and_multi_window_applications": [
  {
    "kind": "Exe",
    "id": "explorer.exe",
    "matching_strategy": "Equals"
  }
]

That's why I hoped something like conditional float ignores might be the solution.

I assume the reason for this json not working was because of a built-in override? https://github.com/LGUG2Z/komorebi-application-specific-configuration/blob/master/applications.yaml#L1387-L1391

@LGUG2Z
Copy link
Owner

LGUG2Z commented Oct 13, 2024

I assume the reason for this json not working was because of a built-in override?

These don't conflict but instead stack so this wouldn't be an issue.

I don't think there is much to be done here, but I would be curious to see the output of komorebic visible-windows when you have those ghost tiles, and the komorebic log output of events being processed when you are making the interactions that result in the ghost tiles.

@Andrew6rant
Copy link
Author

Here's a komorebic log of me clicking on the file explorer in the documents folder, opening three Groupy tabs, then clicking on Windows Terminal (to make the log easier to read), and finally closing the three Groupy tabs after.

Log
PS C:\Users\Andrew> komorebic log
2024-10-13T04:20:31.522547Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=34081868}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:31.526946Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=34081868}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:31.530785Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=34081868}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:31.534409Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=34081868}:focus_container{idx=2}: komorebi::workspace: focusing container
2024-10-13T04:20:31.536903Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=34081868}: komorebi::process_event: processed: (hwnd: 34081868, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.250814Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=35850520}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:38.253002Z ERROR komorebi::process_event: there is no container/window
2024-10-13T04:20:38.502493Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.516210Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.524736Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.606326Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.665632Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.725586Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:38.730283Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}:focus_container{idx=3}: komorebi::workspace: focusing container
2024-10-13T04:20:38.733121Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:38.737729Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:38.748507Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=34081868}: komorebi::process_event: processed: (hwnd: 34081868, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.110235Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=17698300}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:41.112878Z ERROR komorebi::process_event: there is no container/window
2024-10-13T04:20:41.646295Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.666163Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.676904Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.786806Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.815240Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.875151Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:41.880843Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}:focus_container{idx=4}: komorebi::workspace: focusing container
2024-10-13T04:20:41.883867Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:41.887950Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:41.897937Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:44.395638Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:44.398450Z ERROR komorebi::process_event: there is no container/window
2024-10-13T04:20:45.296476Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:45.319146Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:45.333838Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:45.478264Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:45.516466Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:45.590327Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:45.591951Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}:focus_container{idx=5}: komorebi::workspace: focusing container
2024-10-13T04:20:45.594340Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:45.598718Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:45.619151Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:51.813615Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:51.819133Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:51.821953Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:51.825485Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-10-13T04:20:51.830447Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}: komorebi::process_event: processed: (hwnd: 331594, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-10-13T04:20:54.145974Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:54.150268Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:54.161191Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:54.165799Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}:focus_container{idx=5}: komorebi::workspace: focusing container
2024-10-13T04:20:54.170885Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:56.042810Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:56.067651Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=8522668}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:56.074421Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=8522668}:focus_container{idx=4}: komorebi::workspace: focusing container
2024-10-13T04:20:56.080040Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=8522668}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:56.085783Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:56.092588Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=8522668}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:56.096079Z ERROR komorebi::process_event: there is no container/window
2024-10-13T04:20:56.117232Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:56.136676Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:56.144250Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}:focus_container{idx=5}: komorebi::workspace: focusing container
2024-10-13T04:20:56.152165Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:56.161759Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:56.705691Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=8522668}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:56.710458Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=8522668}:focus_container{idx=4}: komorebi::workspace: focusing container
2024-10-13T04:20:56.715263Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=8522668}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:56.721015Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=8522668}: komorebi::process_event: processed: (hwnd: 8522668)
2024-10-13T04:20:59.159846Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:59.187093Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=17698300}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:59.195272Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=17698300}:focus_container{idx=3}: komorebi::workspace: focusing container
2024-10-13T04:20:59.199492Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=17698300}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:59.206979Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:59.214338Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:59.259057Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:59.259412Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}:focus_container{idx=4}: komorebi::workspace: focusing container
2024-10-13T04:20:59.271840Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:59.284890Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:20:59.882563Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=17698300}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:20:59.887974Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=17698300}:focus_container{idx=3}: komorebi::workspace: focusing container
2024-10-13T04:20:59.895400Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=17698300}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:20:59.902254Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=17698300}: komorebi::process_event: processed: (hwnd: 17698300)
2024-10-13T04:21:02.091937Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=34081868}: komorebi::process_event: processed: (hwnd: 34081868, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:21:02.114596Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:21:02.155570Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=35850520}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:21:02.160349Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=35850520}:focus_container{idx=2}: komorebi::workspace: focusing container
2024-10-13T04:21:02.164948Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=35850520}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:21:02.169426Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:21:02.380932Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:21:02.387592Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}:focus_container{idx=3}: komorebi::workspace: focusing container
2024-10-13T04:21:02.393399Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:21:02.398946Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-13T04:21:02.736345Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=35850520}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:21:02.743558Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=35850520}:focus_container{idx=2}: komorebi::workspace: focusing container
2024-10-13T04:21:02.752222Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=35850520}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:21:02.759478Z  INFO process_event{event="Destroy" winevent="ObjectDestroy" hwnd=35850520}: komorebi::process_event: processed: (hwnd: 35850520)
2024-10-13T04:21:05.903336Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:21:05.907853Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-13T04:21:05.910309Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-13T04:21:05.912948Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}:focus_container{idx=1}: komorebi::workspace: focusing container
2024-10-13T04:21:05.915492Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=331594}: komorebi::process_event: processed: (hwnd: 331594, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)

Here's the komorebic visible-windows output:

Output
PS C:\Users\Andrew> komorebic visible-windows
{
  "#############################": [
    {
      "title": "[BUG]: Komorebi incompatible with Groupy 2 · Issue #1045 · LGUG2Z/komorebi - Vivaldi",
      "exe": "vivaldi.exe",
      "class": "Chrome_WidgetWin_1"
    },
    {
      "title": "PowerShell",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    },
    {
      "title": "Documents",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "Documents",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "Documents",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "Documents",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "komorebi.json ‎- Notepads",
      "exe": "ApplicationFrameHost.exe",
      "class": "ApplicationFrameWindow"
    }
  ]
}

I already knew the class for the file explorer was CabinetWClass (using AHK's Window Spy), it unfortunately does not help or do anything all if set with the tray_and_multi_window_applications window rule.

@LGUG2Z
Copy link
Owner

LGUG2Z commented Oct 13, 2024

From looking at the logs it seems like you may want to try doing the opposite by removing this:

MatchingRule::Simple(IdWithIdentifier {
kind: ApplicationIdentifier::Exe,
id: String::from("explorer.exe"),
matching_strategy: Option::from(MatchingStrategy::Equals),
}),

There are instructions for building from source here: https://lgug2z.github.io/komorebi/installation.html#building-from-source

@Andrew6rant
Copy link
Author

This unfortunately did not work for me. I built from source with those lines commented out, and I am still getting ghost tiles. (Both with and without tray_and_multi_window_applications explorer.exe rule)

komorebic log:
PS C:\Users\Andrew> komorebic log
2024-10-14T17:20:36.361935Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=394186}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:36.365949Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=394186}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:36.371055Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=394186}:focus_container{idx=4}: komorebi::workspace: focusing container
2024-10-14T17:20:36.376477Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=394186}: komorebi::process_event: processed: (hwnd: 394186, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:41.641713Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1247954}:update_focused_workspace{follow_focus=true trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:41.645167Z ERROR komorebi::process_event: there is no container/window
2024-10-14T17:20:41.893199Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: File Explorer, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:41.969307Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=1247954}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:41.971640Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=1247954}:focus_container{idx=5}: komorebi::workspace: focusing container
2024-10-14T17:20:41.973142Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=1247954}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:42.183839Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: File Explorer, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:42.193626Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=394186}: komorebi::process_event: processed: (hwnd: 394186, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:42.310034Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:42.349360Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:42.362988Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:42.533897Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:44.318278Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3739450}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:44.576715Z ERROR komorebi::process_event: there is no container/window
2024-10-14T17:20:44.847279Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:44.862562Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:44.871866Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:44.960772Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:44.986605Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:45.054013Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3739450}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:45.058842Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3739450}:focus_container{idx=6}: komorebi::workspace: focusing container
2024-10-14T17:20:45.062483Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3739450}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:45.435965Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:45.445366Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:48.746215Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3214088}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:49.143017Z ERROR komorebi::process_event: there is no container/window
2024-10-14T17:20:49.395781Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3214088}: komorebi::process_event: processed: (hwnd: 3214088, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:49.409108Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3214088}: komorebi::process_event: processed: (hwnd: 3214088, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:49.419313Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3214088}: komorebi::process_event: processed: (hwnd: 3214088, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:49.513081Z  INFO process_event{event="TitleUpdate" winevent="ObjectNameChange" hwnd=3214088}: komorebi::process_event: processed: (hwnd: 3214088, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:49.539024Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=3214088}: komorebi::process_event: processed: (hwnd: 3214088, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:49.603219Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3214088}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:49.606232Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3214088}:focus_container{idx=7}: komorebi::workspace: focusing container
2024-10-14T17:20:49.608389Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3214088}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:50.134997Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3214088}: komorebi::process_event: processed: (hwnd: 3214088, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:50.145411Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:51.759602Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:52.054523Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:52.057004Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}:focus_container{idx=3}: komorebi::workspace: focusing container
2024-10-14T17:20:52.060757Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}: komorebi::process_event: processed: (hwnd: 1050648, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
2024-10-14T17:20:55.066266Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3214088}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:55.673833Z ERROR komorebi::process_event: The parameter is incorrect. (0x80070057)
2024-10-14T17:20:55.678365Z  INFO focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:55.678661Z  INFO focus_container{idx=2}: komorebi::workspace: focusing container
2024-10-14T17:20:55.965228Z  INFO komorebi::reaper: reaped 1 orphan window(s) and 0 orphaned container(s) on monitor: 0, workspace: 0
2024-10-14T17:20:55.972423Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3739450}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:56.113306Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3739450}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:56.116204Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3739450}:focus_container{idx=6}: komorebi::workspace: focusing container
2024-10-14T17:20:56.120958Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:56.125943Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:57.389512Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:57.402442Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=3739450}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:57.409579Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=3739450}:focus_container{idx=5}: komorebi::workspace: focusing container
2024-10-14T17:20:57.417968Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=3739450}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:57.749398Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=3739450}: komorebi::process_event: processed: (hwnd: 3739450, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:57.755412Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=3739450}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:57.939336Z ERROR komorebi::process_event: there is no container/window
2024-10-14T17:20:59.221184Z  INFO process_event{event="Uncloak" winevent="ObjectUncloaked" hwnd=394186}: komorebi::process_event: processed: (hwnd: 394186, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:59.247792Z  INFO process_event{event="Cloak" winevent="ObjectCloaked" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954, title: Documents, exe: explorer.exe, class: CabinetWClass)
2024-10-14T17:20:59.255507Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1247954}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:20:59.259624Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1247954}:focus_container{idx=4}: komorebi::workspace: focusing container
2024-10-14T17:20:59.264934Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1247954}:update_focused_workspace{follow_focus=false trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:20:59.545723Z  INFO process_event{event="Hide" winevent="ObjectHide" hwnd=1247954}: komorebi::process_event: processed: (hwnd: 1247954)
2024-10-14T17:21:01.223226Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}:update_focused_workspace{follow_focus=true
 trigger_focus=false}: komorebi::window_manager: updating
2024-10-14T17:21:01.225999Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}:focus_window{idx=0}: komorebi::container: focusing window
2024-10-14T17:21:01.227933Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}:focus_container{idx=3}: komorebi::workspace: focusing container
2024-10-14T17:21:01.230804Z  INFO process_event{event="FocusChange" winevent="SystemForeground" hwnd=1050648}: komorebi::process_event: processed: (hwnd: 1050648, title: PowerShell, exe: WindowsTerminal.exe, class: CASCADIA_HOSTING_WINDOW_CLASS)
komorebic visible-windows:
PS C:\Users\Andrew> komorebic visible-windows
{
  "#############################": [
    {
      "title": "[BUG]: Komorebi incompatible with Groupy 2 · Issue #1045 · LGUG2Z/komorebi - Vivaldi",
      "exe": "vivaldi.exe",
      "class": "Chrome_WidgetWin_1"
    },
    {
      "title": "lib.rs - komorebi - Visual Studio Code",
      "exe": "Code.exe",
      "class": "Chrome_WidgetWin_1"
    },
    {
      "title": "komorebi.json ‎- Notepads",
      "exe": "ApplicationFrameHost.exe",
      "class": "ApplicationFrameWindow"
    },
    {
      "title": "PowerShell",
      "exe": "WindowsTerminal.exe",
      "class": "CASCADIA_HOSTING_WINDOW_CLASS"
    },
    {
      "title": "Documents",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "Downloads",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "Andrew",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    },
    {
      "title": "This PC",
      "exe": "explorer.exe",
      "class": "CabinetWClass"
    }
  ]
}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants