--- xfce4-terminal-0.4.6.orig/terminal/terminal-screen.c +++ xfce4-terminal-0.4.6/terminal/terminal-screen.c @@ -1109,8 +1109,16 @@ terminal_screen_vte_resize_window (VteTe * returns a size in pixels */ #if VTE_CHECK_VERSION (0, 24, 0) gtk_widget_style_get (GTK_WIDGET (terminal), "inner-border", &border, NULL); - xpad = border->left + border->right; - ypad = border->top + border->bottom; + if (border != NULL) + { + xpad = border->left + border->right; + ypad = border->top + border->bottom; + gtk_border_free (border); + } + else + { + xpad = ypad = 0; + } #else vte_terminal_get_padding (terminal, &xpad, &ypad); #endif @@ -1576,8 +1584,16 @@ terminal_screen_force_resize_window (Ter #if VTE_CHECK_VERSION (0, 24, 0) gtk_widget_style_get (GTK_WIDGET (screen->terminal), "inner-border", &border, NULL); - xpad = border->left + border->right; - ypad = border->top + border->bottom; + if (border != NULL) + { + xpad = border->left + border->right; + ypad = border->top + border->bottom; + gtk_border_free (border); + } + else + { + xpad = ypad = 0; + } #else vte_terminal_get_padding (VTE_TERMINAL (screen->terminal), &xpad, &ypad); #endif