Startup size one cell smaller than configuration
Submitted by Tony Houghton
Link to original bug (#750559)
Description
When opening a new terminal its size is one column and one row smaller than the configured settings, as reported by $COLUMNS and $LINES and when starting to drag a window border. For example, by default it's 79x24 instead of 80x25.
This happens with GNOME 3 and Adwaita in Debian. I haven't tried other themes and environments.
It's probably caused by failing to take some border/margin sizes into account correctly. After updating roxterm for vte-2.91 I had a similar bug because I'd had to remove code that read sizes from obsolete vte properties. I replaced it with this for a successful fix:
GtkBorder border;
GtkStateFlags state = gtk_widget_get_state_flags(roxterm->widget);
gtk_style_context_get_padding(roxterm->style_context,
state, &border);
roxterm->padding_w = border.left + border.right;
roxterm->padding_h = border.top + border.bottom;
gtk_style_context_get_border(roxterm->style_context,
state, &border);
roxterm->padding_w += border.left + border.right;
roxterm->padding_h += border.top + border.bottom;
gtk_style_context_get_margin(roxterm->style_context,
state, &border);
roxterm->padding_w += border.left + border.right;
roxterm->padding_h += border.top + border.bottom;
Version: 3.16.x
Resolution: RESOLVED OBSOLETE