Commit 48a7718d authored by Behdad Esfahbod's avatar Behdad Esfahbod
Browse files

Revert "Revert 93706478"

This reverts commit dab50851.

Again, set widget background color to the terminal background color.
This removes flicker when resizing the terminal/widget.
parent 5f64a707
......@@ -12786,6 +12786,7 @@ vte_terminal_background_update(VteTerminal *terminal)
{
double saturation;
const PangoColor *entry;
GdkColor color;
/* If we're not realized yet, don't worry about it, because we get
* called when we realize. */
......@@ -12805,6 +12806,13 @@ vte_terminal_background_update(VteTerminal *terminal)
entry->red, entry->green, entry->blue,
terminal->pvt->bg_opacity);
/* Set the terminal widget background color since otherwise we
* won't draw it for VTE_BG_SOURCE_NONE. */
color.red = entry->red;
color.green = entry->green;
color.blue = entry->blue;
gtk_widget_modify_bg (&terminal->widget, GTK_STATE_NORMAL, &color);
_vte_draw_set_background_solid (terminal->pvt->draw,
entry->red / 65535.,
entry->green / 65535.,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment