mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: Breakage if Explorer has been restarted with taskkill or crashes #437
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 @Cynosphere on GitHub (Jul 26, 2024).
Describe the bug
Switching workspaces via taskbar breaks if Explorer has been restarted while komorebi is running.
To Reproduce
Steps to reproduce the behavior:
Observed behavior
The selected window shows up on the current workspace and the selected border becomes unresponsive.
Switching workspaces still works and everything existing will be tiled properly. New windows do not get tiled.
Only way to fix is to stop and restart komorebi.
Expected behavior
Selecting the window takes you to the workspace it is on and the border doesn't become unresponsive.
Operating System
komorebic checkOutputAdditional context
N/A
@Cynosphere commented on GitHub (Jul 26, 2024):
It only seems to be breaking when using the context menu entry from Winaero Tweaker, since that calls cmd to run taskkill and then launch it.
komorebic logoutput:Restaring Explorer through Task Manager or Process Hacker doesn't cause any breakage.
@LGUG2Z commented on GitHub (Jul 27, 2024):
I don't actually understand any of the code in this module or how COM works 😅
b5eafc6b96/komorebi/src/com/mod.rs (L1-L3)I'm guessing that these class registrations are tied to specific instances of
explorer.exe. I'll leave this open if anyone wants to dig, but I guess the general guidance should be that if you restartexplorer.exe, you should also restartkomorebi.exe.@LGUG2Z commented on GitHub (Jan 23, 2025):
Coming back to this after over half a year, I think that this is a reasonable thing to do if
explorer.exehas been killed.