GNOME Bugzilla – Bug 779572
Incorrect size on Wayland
Last modified: 2021-06-10 15:19:25 UTC
When you use the vte-terminal-set-size method to set the initial size of the terminal it works fine on X11, however on Wayland it seems to add 2-3 extra rows to the terminal. So for example, if I specify an initial size of 120x30, on Wayland I actually get 120x33. I've tested this with terminix, xfce-terminal (GTK3 version) and terminator (GTK3 version) and they all have the same issue. Testing with gnome-terminal however shows that it is working fine, however I suspect this is because gnome-terminal is doing the size calculation itself instead of relying on VTE to do it. This can be seen in terminal_window_update_geometry and terminal_window_update_size in terminal-window.c in gnome-terminal. This was originally reported by a terminix user here: https://github.com/gnunn1/terminix/issues/809
If you use vte_terminal_get_geometry_hints() or vte_terminal_set_geometry_hints_for_window(), this is expected since they weren't updated with the same patches that gnome-terminal got for fixing window sizing (bug 769898).
I'm not using either of the geometry methods, in the tested case the user specifies the default size of the terminal in the profile and then it passes those to vte-terminal-set-size. So I don't think the geometry methods are causing this problem since it is essentially passing in hard-coded values.
-- GitLab Migration Automatic Message -- This bug has been migrated to GNOME's GitLab instance and has been closed from further activity. You can subscribe and participate further through the new bug through this link to our GitLab instance: https://gitlab.gnome.org/GNOME/vte/-/issues/2378.