mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Minimizing out of focus application leaves ghost tile #564
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @tobiasbeiser on GitHub (Jan 17, 2025).
Summary
When minimizing a window/application that is not in focus, a ghost tile is left behind. I have tested this with various applications, such as Powershell, Explorer, VSCode, Settings, etc.
When closing these applications, instead of minimizing, while out of focus, komorebi behaves as expected.
https://github.com/user-attachments/assets/b1df8535-fc8d-4404-ada9-b6d52228252b
Version Information
systeminfo | findstr /B /C:"OS Name" /B /C:"OS Version"OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.22631 N/A Build 22631
komorebic --versionkomorebic 0.1.33
tag:v0.1.33
commit_hash:cc51f62c
build_time:2025-01-11 22:30:30 +00:00
build_env:rustc 1.84.0 (9fc6b4312 2025-01-07),stable-x86_64-pc-windows-msvc
Komorebi Configuration
Hotkey Configuration
#Requires AutoHotkey v2.0.2
#SingleInstance Force
Komorebic(cmd) {
RunWait(format("komorebic.exe {}", cmd), , "Hide")
}
#q::Komorebic("close")
#m::Komorebic("minimize")
; Applications
#t::RunWait("C:\Users\Tobias\AppData\Local\Microsoft\WindowsApps\Microsoft.PowerShell_8wekyb3d8bbwe\pwsh.exe","C:\Users\Tobias" , )
#f::RunWait("firefox.exe","C:\Program Files\Mozilla Firefox" , )
#c::RunWait("code","C:\Users\Tobias" , "Hide" )
; Focus windows
#Left::Komorebic("focus left")
#Down::Komorebic("focus down")
#Up::Komorebic("focus up")
#Right::Komorebic("focus right")
#+[::Komorebic("cycle-focus previous")
#+]::Komorebic("cycle-focus next")
; Move windows
#+^Left::Komorebic("move left")
#+^Down::Komorebic("move down")
#+^Up::Komorebic("move up")
#+^Right::Komorebic("move right")
; Stack windowsf
; #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
#+Right::Komorebic("resize-axis horizontal increase")
#+Left::Komorebic("resize-axis horizontal decrease")
#+Up::Komorebic("resize-axis vertical increase")
#+Down::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
KOMOREBI_CONFIG_HOME detected: C:\Users\Tobias.config\komorebi
Looking for configuration files in C:\Users\Tobias.config\komorebi
Found komorebi.json; this file can be passed to the start command with the --config flag
Found C:\Users\Tobias.config\whkdrc; key bindings will be loaded from here when whkd is started, and you can start it automatically using the --whkd flag
@tobiasbeiser commented on GitHub (Jan 17, 2025):
Upon further investigation, it seems that this bug was introduced with version 0.1.31 as it seems to work as expected in version 0.1.30
@LGUG2Z commented on GitHub (Jan 17, 2025):
I can't reproduce this on the
masterbranch with my configuration:@LGUG2Z commented on GitHub (Jan 17, 2025):
These sorts of non-reproducible bugs are a bit tricky. I think the next step should be for users to try and reproduce bugs that I am not able to reproduce in a Hyper-V VM with the example komorebi quickstart configuration file. (I'll update the bug report template soon to mention this soon)
@LGUG2Z commented on GitHub (Jan 17, 2025):
Also it would be a big help if you could bisect the commits between the two releases to find the commit which introduced this change in behavior for you
@tobiasbeiser commented on GitHub (Jan 17, 2025):
the bug does not occur with your provided configuration. I have narrowed it down to the
transparencyflag. When setting the value totruethe bug can be reproduced@tobiasbeiser commented on GitHub (Jan 17, 2025):
i checked the commits and it seems like the bug was introduced with this one:
449ccac645@LGUG2Z commented on GitHub (Jan 17, 2025):
Next question: If transparency is enabled but animations are disabled, do you still have the same behavior?
@tobiasbeiser commented on GitHub (Jan 17, 2025):
I tested all possible combinations on the latest
mastercommit:When restoring the minimized application this error was displayed in the log:
@LGUG2Z commented on GitHub (Jan 17, 2025):
Thank you! The table is very helpful, I can probably look into this over the weekend. Hopefully you can use one of the alternative configuration combinations without any issue until I untangle this.
@LGUG2Z commented on GitHub (Jan 18, 2025):
This is fixed on
masterand will be part of the next nightly release tomorrow 🚀If you plan to use
komorebiin your day job in the future please remember to purchase a commercial use license 🙏