Blob Blame History Raw
From 56e102efc7d4ae62da859174619ea27452b2abb1 Mon Sep 17 00:00:00 2001
From: Debarshi Ray <debarshir@gnome.org>
Date: Fri, 9 May 2014 19:43:55 +0200
Subject: [PATCH 1/2] vteapp: Unbreak transparency

Mark the window as app-paintable. Otherwise GTK+ will try to optimize
by setting an opaque region for the whole window (gtk+ 3c2c3ab6).

https://bugzilla.gnome.org/show_bug.cgi?id=729884
---
 src/vteapp.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vteapp.c b/src/vteapp.c
index cb6af44..8c19b26 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -901,6 +901,7 @@ main(int argc, char **argv)
 						       background);
 	}
 	if (transparent) {
+                gtk_widget_set_app_paintable (window, TRUE);
 		vte_terminal_set_background_transparent(terminal,
 							TRUE);
                 vte_terminal_set_background_tint_color(terminal, &tint);
-- 
1.9.0


From c15e75c6863587dc77039f063ce740ab58c4bea1 Mon Sep 17 00:00:00 2001
From: Debarshi Ray <debarshir@gnome.org>
Date: Mon, 12 May 2014 18:58:26 +0200
Subject: [PATCH 2/2] widget: Update background when opacity is changed

https://bugzilla.gnome.org/show_bug.cgi?id=730023
---
 src/vte.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/src/vte.c b/src/vte.c
index 3227b07..811cc5c 100644
--- a/src/vte.c
+++ b/src/vte.c
@@ -3101,6 +3101,7 @@ vte_terminal_set_opacity(VteTerminal *terminal, guint16 opacity)
                 return;
 
 	pvt->bg_opacity = opacity;
+	vte_terminal_queue_background_update(terminal);
 
         g_object_notify(G_OBJECT(terminal), "background-opacity");
 }
-- 
1.9.0