wezterm
wezterm copied to clipboard
Weird Sonoma start window positions
What Operating System(s) are you seeing this problem on?
macOS
Which Wayland compositor or X11 Window manager(s) are you using?
N/A
WezTerm version
20231004-113117-11dec45f
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 tried to set the values of rows and columns (rows x cols) that I use in iTerm2. I have a built-in MacBook Pro monitor and an external Dell full HD monitor.
It mostly works when cols are less than 100 and rows are less than 25. However, when I try to set it to 150x45, which I used to, windows are placed between monitors, and the Stage Manager hides one half. When dragging from a high DPI monitor to lower DPI one, the cols and rows count doubles. Also, it seems like the starting position is not respected.
I've also captured a moment when a small window gets stuck between monitors with a visible glitch.
https://github.com/wez/wezterm/assets/146918174/4e6d8c64-07f0-4cee-bfa1-e8ea5f11c6c6
To Reproduce
I suppose this is my multi DPI configuration in Sonoma with Stage Manager.
Configuration
local wezterm = require 'wezterm'
local mux = wezterm.mux
wezterm.on('gui-startup', function(cmd) -- set startup Window position
local tab, pane, window = mux.spawn_window(cmd or {
width = 100,
height = 45,
position = {
x = 50,
y = 50,
origin = {
Named = "DELL P2314H"
}
}
})
end)
return {
front_end = "WebGpu",
audible_bell = "Disabled",
-- initial size of the terminal
-- initial_cols = 150,
-- initial_rows = 45,
-- font stuff
-- don't complain if an icon or character is missing
warn_about_missing_glyphs = false,
font = wezterm.font 'Source Code Pro',
font_size = 12,
-- line_height = 1.1,
-- window look and feel {{{1
-- window_decorations = 'INTEGRATED_BUTTONS|RESIZE',
enable_scroll_bar = true,
tab_bar_at_bottom = true,
-- colors {{{1
-- color_scheme = 'Gruvbox Dark',
color_scheme = 'Chalkboard',
-- shell mux params {{{1
ssh_domains = {}
}
Expected Behavior
A window should be placed and sized accordingly
Logs
No response
Anything else?
No response
Please try the latest nightly build and let me know if this is still an issue!
Sorry, I gave up for a moment but will try and report. Thank you for you work!
@wez I had the issue and can confirm that it is fixed in nightly