wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
18.06k stars 807 forks source link

Setting initial_rows > 24 maxes window #6282

Open jleyser opened 1 month ago

jleyser commented 1 month ago

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

wezterm 20240203-110809-5046fc22

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

I have a Mac with two monitors. I am setting up wezterm for the first time (though I've used it for a while on Windows).

On my external monitor, if I do this in my wezterm.lua:

config.initial_rows = 24 config.initial_cols = 120

I get the expect results, a window of that size.

But if I do this:

config.initial_rows = 25 config.initial_cols = 120

or, indeed, any number higher than 24 for initial_rows, the wezterm windows expands to the size of my screen in both directions.

On my built-in monitor, I get the expected results both times. IOW, this only happens on the external monitor.

To Reproduce

No response

Configuration

config.font_size = 16 config.initial_rows = 25 config.initial_cols = 120

Expected Behavior

No response

Logs

No response

Anything else?

Output of wezterm.gui.screens(), which seems relevant:

wezterm.gui.screens() { "active": { "effective_dpi": 72, "height": 1080, "max_fps": 60, "name": "BenQ GW2780", "scale": 1, "width": 1920, "x": 0, "y": 0, }, "by_name": { "BenQ GW2780": { "effective_dpi": 72, "height": 1080, "max_fps": 60, "name": "BenQ GW2780", "scale": 1, "width": 1920, "x": 0, "y": 0, }, "Built-in Retina Display": { "effective_dpi": 144, "height": 1912, "max_fps": 60, "name": "Built-in Retina Display", "scale": 2, "width": 2940, "x": 3840, "y": 148, }, }, "main": { "effective_dpi": 72, "height": 1080, "max_fps": 60, "name": "BenQ GW2780", "scale": 1, "width": 1920, "x": 0, "y": 0, }, "origin_x": 0, "origin_y": 0, "virtual_height": 2060, "virtual_width": 6780, }

jleyser commented 1 month ago

Oops, sorry, forgot to update the version box to the nightly I tired. It's wezterm 20241007-103714-ed430415