wezterm
wezterm copied to clipboard
Wezterm runs but doesn't display a window
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
niri
WezTerm version
20231203-124028-e3cd2e93
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes, and I updated the version box above to show the version of the nightly that I tried
Describe the bug
When launching Wezterm in Niri, there are no errors but Wezterm never displays a window. By default niri sends the initial configure event with suggested size already set. Disabling this function in Niri results in Wezterm displaying a window. Please see the last 2 comments of YaLTeR/niri#87 for info from the dev of Niri
To Reproduce
with default-column-width defined in the config for Niri, attempt to launch Wezterm. No window will be displayed.
Configuration
no config
Expected Behavior
The dev of Niri suggests that Wezterm should not assume that a 0-size configuration will arrive
Logs
No response
Anything else?
No response
Hey, yeah, my guess is that wezterm waits for a (0, 0) configure. But niri usually sends a configure with size set right away since it has a default width and height for windows.
So I know literally nothing about wayland or anything of the sort, so I don't know how important these lines are, but deleting them at least made the window show up for me in my local build, in case anyone wants a workaround. https://github.com/jamesnicolas/wezterm/commit/1637c8f32677825720ab1e7de7e790fadfbfc3aa
Having the same issue with Hyprland 0.37.0.
@wez I'm willing to make a PR to fix this, but I'd like to better understand the purpose of the code waiting for the first configuration, so I don't break anything.
Is this a duplicate of #5103?
It does seem to be fixed in the newest git version of wezterm. Would be nice to have a wezterm release with the fix, like the comments in the other issue have said.
A git build fixes it for me on NixOS+Hyprland.