wezterm
wezterm copied to clipboard
Wayland: tab bar appears jittery when resizing
What Operating System(s) are you seeing this problem on?
Linux Wayland
WezTerm version
wezterm 20220317-165235-27088fab
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
The tab bar (not the title bar) appears to jitter while resizing the window from the bottom.
To Reproduce
- Open WezTerm (Installed using .deb file), with Wayland enabled
- Use the bottom handle to resize the window
- Notice the tab bar jittering.
Configuration
This is my whole config file. Luckily it's small.
local wezterm = require 'wezterm'
local pwd = select(2, wezterm.run_child_process({"pwd", "-L"}))
wezterm.log_info('Starting wezterm at '..pwd)
return {
enable_wayland = true,
window_decorations = "TITLE | RESIZE",
-- Font
font = wezterm.font("Ubuntu Mono"),
font_size = 13,
-- Misc stuff
default_gui_startup_args = {"start", "--cwd", pwd},
enable_scroll_bar = true,
-- Color schemes
color_scheme = 'Neat and Simple',
color_schemes = {
['Neat and Simple'] = {
-- BG/FG
background = '#123',
foreground = '#EEE',
scrollbar_thumb = '#888'
}
}
}
Expected Behavior
The tab bar should remain in place when resizing from the bottom, like any other app would.
Logs
09:39:21.733 INFO config::lua > lua: Starting wezterm at <insert $HOME>
09:39:21.735 INFO wezterm_mux_server_impl::local > setting up /run/user/1000/wezterm/gui-sock-10800
09:39:21.787 INFO wezterm_gui::termwindow > OpenGL initialized! Mesa Intel(R) Xe Graphics (TGL GT2) 4.6 (Compatibility Profile) Mesa 21.2.6 is_context_loss_possible=false wezterm version: 20220317-165235-27088fab
09:39:31.772 INFO config::lua > lua: Starting wezterm at <insert $HOME>
Anything else?
Environment
Linux distro: Ubuntu 21.10Desktop environment: GNOME 40.5, Wayland
I'm not sure exactly what you mean by jittering; could you capture a screen recording that shows it?
https://user-images.githubusercontent.com/35639051/159083682-5e464fe6-5d48-4007-9eb6-828118aea87c.mov
Here's a video. From closer inspection, certain parts of the window do not update their size in sync.
This looks like the client side decorations in the titlebar being out of sync, which is (unfortunately) expected behavior. The plan for this is https://github.com/wez/wezterm/issues/1180 and to remove the toolkit provided client side decorations.
@jgcodes2020 Do you still have this issue with the latest version?
39e727db5831e624a68eeb4592aa145cdd98af1a does a better job of making the tab bar occupy the full width. the client side decorations still seem impervious to being in sync, no matter what I try.