[vte3/f20] Backport transparency fixes

Debarshi Ray rishi at fedoraproject.org
Thu May 15 12:54:43 UTC 2014


commit f6ca788fa9bd0dcdcbac221f2772f6977f72aa86
Author: Debarshi Ray <debarshir at gnome.org>
Date:   Thu May 15 14:33:07 2014 +0200

    Backport transparency fixes

 fix-transparency.patch |   54 ++++++++++++++++++++++++++++++++++++++++++++++++
 vte3.spec              |    7 +++++-
 2 files changed, 60 insertions(+), 1 deletions(-)
---
diff --git a/fix-transparency.patch b/fix-transparency.patch
new file mode 100644
index 0000000..ef31f38
--- /dev/null
+++ b/fix-transparency.patch
@@ -0,0 +1,54 @@
+From 56e102efc7d4ae62da859174619ea27452b2abb1 Mon Sep 17 00:00:00 2001
+From: Debarshi Ray <debarshir at 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 at 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
+
diff --git a/vte3.spec b/vte3.spec
index 1db07ce..3e8d633 100644
--- a/vte3.spec
+++ b/vte3.spec
@@ -1,6 +1,6 @@
 Name: vte3
 Version: 0.34.9
-Release: 2%{?dist}
+Release: 3%{?dist}
 Summary: A terminal emulator
 License: LGPLv2+
 Group: User Interface/X
@@ -13,6 +13,7 @@ Patch1: vte-alt-meta-confusion.patch
 Patch2: 0001-widget-Only-show-the-cursor-on-motion-if-moved.patch
 # https://bugzilla.gnome.org/show_bug.cgi?id=705985
 Patch3: vte-color-escape.patch
+Patch4: fix-transparency.patch
 
 BuildRequires: gtk3-devel >= 3.0.0
 BuildRequires: ncurses-devel
@@ -46,6 +47,7 @@ vte.
 %patch1 -p1 -b .alt-meta
 %patch2 -p1 -b .motion
 %patch3 -p1 -b .color-escape
+%patch4 -p1 -b .transparency
 
 %build
 CFLAGS="%optflags -fPIE -DPIE" \
@@ -93,6 +95,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/*.la
 
 
 %changelog
+* Thu May 15 2014 Debarshi Ray <rishi at fedoraproject.org> - 0.34.9-3
+- Backport transparency fixes
+
 * Fri May  9 2014 Matthias Clasen <mclasen at redhat.com> - 0.34.9-2
 - Apply an upstream fix for xterm escape sequences
 


More information about the scm-commits mailing list