Wayland mixed-scale monitors: window size compounds on scale change (WebGpu panic >16384, fullscreen spans monitors)
What Operating System(s) are you seeing this problem on?
Linux Wayland
Which Wayland compositor or X11 Window manager(s) are you using?
GNOME Shell / Mutter (Ubuntu 24.04), native Wayland (WAYLAND_DISPLAY=wayland-0), layout-mode = physical
WezTerm version
20260917-114457-b09b56c2
Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?
Yes (this is a September 2026 nightly).
Describe the bug
On a multi-monitor setup with mixed scale factors (1.0 and 2.0), moving a WezTerm window between monitors makes WezTerm recompute the window pixel size to preserve rows × cols at the new scale. The size compounds, and the window grows far past any monitor:
- WebGpu panic. The size reached 19520 × 11184 and
Surface::configurepanicked (Vulkan max 16384), which aborted the process. This is the same panic as #7819 (macOS, multi-display), and the Linux/Wayland case shows a probable cause: a scale-change resize that grows each time. - Fullscreen spans several monitors. In
FULL_SCREENstate, the window is drawn across adjacent monitors. This happens withToggleFullScreen(Alt+Enter) and with GNOME's owntoggle-fullscreenkeybinding, so the compositor is not choosing a bad size. WezTerm draws a buffer that does not match the configured size and scale. The Wayland backend callsset_fullscreen(None). - With
config.dpi = 96pinned (an attempted workaround), maximize stops working on Mutter.
Monitor layout (Mutter GetCurrentState, logical monitors):
(0, 0, 1.0, transform 1, [DP-7 TCL 27" ]) portrait
(1080, 0, 2.0, transform 0, [DP-8 Acer KG281K 4K ])
(4920, 0, 1.0, transform 1, [DP-9 DELL P2419H ]) portrait
(2323, 2160, 1.0, transform 0, [eDP-1 laptop, primary])To Reproduce
- Use GNOME Wayland with one monitor at scale 2.0 and the others at 1.0.
- Drag a WezTerm window between the scale-1 and scale-2 monitors, then maximize it or make it fullscreen.
- Watch the log for the requested grid size, and for a panic with
front_end = "WebGpu".
Configuration
config.front_end = 'WebGpu' -- Vulkan adapter chosen via wezterm.gui.enumerate_gpus()
config.webgpu_power_preference = 'HighPerformance'Expected Behavior
- A scale change must not compound the window size. Rows × cols can be kept only up to the monitor size.
- In fullscreen or maximized state, the buffer size must follow the compositor's configure event.
- wgpu must not abort the process on an oversized surface. The size can be clamped to
max_texture_dimension_2d.
Logs
Panic (WebGpu, before workaround):
ERROR wgpu::backend::wgpu_core > Handling wgpu errors as fatal by default
thread 'main' panicked at vendor/wgpu-25.0.2/src/backend/wgpu_core.rs:3561:18:
wgpu error: Validation Error
Caused by:
In Surface::configure
`Surface` width and height must be within the maximum supported texture size.
Requested was (19520, 11184), maximum extent for either dimension is 16384.
thread 'main' panicked at library/std/src/thread/local.rs:429:25:
cannot access a Thread Local Storage value during or after destruction: AccessError
fatal runtime error: thread local panicked on drop, abortingThe grid doubles within 1.6 s while the window crosses to the 2.0 monitor (OpenGL front end, fullscreen):
18:18:16.225 WARN wezterm_gui::termwindow::resize > cannot resize window to match Some(RowsAndCols { rows: 28, cols: 120 }) because window_state is FULL_SCREEN
18:18:17.834 WARN wezterm_gui::termwindow::resize > cannot resize window to match Some(RowsAndCols { rows: 58, cols: 242 }) because window_state is FULL_SCREENMaximized, after the crash:
WARN wezterm_gui::termwindow::resize > cannot resize window to match Some(RowsAndCols { rows: 91, cols: 382 }) because window_state is MAXIMIZEDAnything else?
Current workaround: front_end = 'OpenGL' on Linux (no abort) and maximize instead of fullscreen. Setting the scale of the 4K monitor to 1.0 is not practical because its text becomes too small.
Source: wezterm/wezterm