Open
Description
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
Hyprland 0.40.0
WezTerm version
wezterm 20240510-062420-e19def7c
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
Wezterm is not starting on monitors where scale > 1.
I have 3 monitors
❯ hyprctl monitors -j | jq -r '.[] | [ .id, .name, .scale ]| @csv'
0,"eDP-1",1.50
1,"DP-3",1.00
2,"DP-4",2.00
when starting on DP-3, it works
when starting on the other 2 monitors, it crashes with
16:40:12.144 WARN wezterm_gui::termwindow::resize > cannot resize window to match Some(RowsAndCols { rows: 35, cols: 101 }) because window_state is MAXIMIZED
xdg_surface@29: error 3: xdg_surface has never been configured
Protocol error 3 on object xdg_surface@29:
16:40:12.180 ERROR wezterm_gui > running message loop: Protocol error 3 on object xdg_surface@29: ; terminating
If I start it on the monitor that works and then move it over to another monitor, it crashes
I saw other reports, but they were all closed, or they were mentioning additional informations that didn't reflect my case
I tried changing the monitor scale to 1 on all 3 monitors and all works well
To Reproduce
No response
Configuration
local wezterm = require("wezterm")
local config = wezterm.config_builder() or {}
config.enable_wayland = true
-- don't care about tabs
config.enable_tab_bar = false
config.use_fancy_tab_bar = false
config.show_tabs_in_tab_bar = false
config.show_new_tab_button_in_tab_bar = false
-- colorscheme
config.color_scheme = "Catppuccin Mocha"
config.font = wezterm.font_with_fallback({
{
family = "JetBrains Mono",
weight = "Regular",
harfbuzz_features = { "calt=1", "clig=1", "liga=1" },
},
{ family = "Noto Color Emoji", weight = "Regular" },
})
config.line_height = 1.4
-- config.underline_position = "-20px"
config.underline_thickness = "200%"
config.command_palette_font_size = 12
config.window_padding = {
left = 20,
right = 20,
top = 20,
bottom = 20,
}
config.keys = require("keys")
config.default_prog = { "tmux" }
return config
Expected Behavior
No response
Logs
No response
Anything else?
No response