wezterm icon indicating copy to clipboard operation
wezterm copied to clipboard

Wezterm runs but doesn't display a window

Open rabidpug opened this issue 1 year ago • 6 comments

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

rabidpug avatar Dec 21 '23 11:12 rabidpug

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.

YaLTeR avatar Dec 22 '23 10:12 YaLTeR

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

jamesnicolas avatar Feb 11 '24 22:02 jamesnicolas

Having the same issue with Hyprland 0.37.0.

lokesh-krishna avatar Mar 20 '24 13:03 lokesh-krishna

@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.

tmccombs avatar Apr 02 '24 16:04 tmccombs

Is this a duplicate of #5103?

raffaem avatar Jun 01 '24 07:06 raffaem

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.

FreeFull avatar Jun 12 '24 16:06 FreeFull

A git build fixes it for me on NixOS+Hyprland.

jcdickinson avatar Jul 23 '24 00:07 jcdickinson