mirror of
https://github.com/LGUG2Z/komorebi.git
synced 2026-01-11 14:40:25 +01:00
[BUG]: WezTerm partially unmanaged, #694
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 @josswright on GitHub (Oct 25, 2025).
Summary
(This isn't a duplicate of https://github.com/LGUG2Z/komorebi/issues/1464, as far as I'm aware. That seems to refer to WezTerm installed via WSL and running via WSLg. This is for the Windows build of WezTerm running natively.)
I've been using the Windows build of WezTerm on my Windows desktop machine, and just installed it on my laptop. I tend to run WezTerm with the
window_decorations = "RESIZE"so that there's no title bar.On my desktop, I often notice that WezTerm doesn't honour my masir focus-follows-mouse setup, but that I can switch focus to it manually with komorebi hotkeys or an explicit mouse click. Despite this, it is tiled as for other windows, and can be moved, moved to another monitor, moved to another workspace as usual.
However, having just installed it on my laptop and copied over my configurations for komorebi, whkd, masir, and WezTerm, WezTerm is completely unmanaged by komorebi when it opens. If I change my config to
window_decorations = "TITLE | RESIZE"(the default, with titlebar) then komorebi does tile and manage it, but focus following mouse is still not working.I went to look at forcing komorebi to manage WezTerm, in case it was in the ignore list, but
komorebic visible-windowsdoesn't list the WezTerm window, even when the titlebar is enabled and komorebi tiles it properly.I've tried with the latest release version of WezTerm, and the nightly build.
Version Information
OS Name: Microsoft Windows 11 Pro
OS Version: 10.0.26100 N/A Build 26100
komorebic 0.1.38
tag:v0.1.38
commit_hash:ffa76ea2
build_time:2025-09-13 18:40:25 +00:00
build_env:rustc 1.89.0 (29483883e 2025-08-04),stable-x86_64-pc-windows-msvc
Komorebi Configuration
Output of komorebic check
@josswright commented on GitHub (Nov 4, 2025):
As an update: I just discovered an issue for
yabaiwhich seems to be describing similar behaviour.It seems that if I run Wezterm before komorebi starts, this behaviour of WezTerm being unmanaged happens and persists even if I then close WezTerm; it looks like because WezTerm leaves a process open even after closing all windows then the unmanaged state is preserved.
If I manually kill the WezTerm process in Task Manager and then restart, then komorebi does then start to tile the window correctly. (Alternatively, if I make sure that I wait until komorebi is loaded before first starting WezTerm then the problem never turns up.)
This still leaves the problem of WezTerm somehow not being considered a window by
masirfor the purposes of focus following mouse, so there is still something odd going on. At least there's a workaround for the tiling itself, though.