[Xfce4-commits] [apps/xfce4-terminal] 01/01: Fix 'Transparency setting ignored when using --color-bg'

noreply at xfce.org noreply at xfce.org
Sun Dec 29 19:35:27 CET 2019


This is an automated email from the git hooks/post-receive script.

f   2   4   0   4       p   u   s   h   e   d       a       c   o   m   m   i   t       t   o       b   r   a   n   c   h       m   a   s   t   e   r   
   in repository apps/xfce4-terminal.

commit b3b0ec71367e6b972d361d4beb391e064e89dd03
Author: Igor <f2404 at yandex.ru>
Date:   Sun Dec 29 13:34:48 2019 -0500

    Fix 'Transparency setting ignored when using --color-bg'
    
    Fixes bug #16309
---
 terminal/terminal-screen.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/terminal/terminal-screen.c b/terminal/terminal-screen.c
index f2ba041..b6f52ad 100644
--- a/terminal/terminal-screen.c
+++ b/terminal/terminal-screen.c
@@ -1146,8 +1146,13 @@ terminal_screen_update_colors (TerminalScreen *screen)
           screen->has_random_bg_color = 0;
         }
     }
-  else
-    has_bg = gdk_rgba_parse (&screen->background_color, screen->custom_bg_color);
+  else if ((has_bg = gdk_rgba_parse (&bg, screen->custom_bg_color)))
+    {
+      /* preserve the alpha value which is responsible for transparency */
+      screen->background_color.red = bg.red;
+      screen->background_color.green = bg.green;
+      screen->background_color.blue = bg.blue;
+    }
 
   if (G_LIKELY (valid_palette))
     {

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Xfce4-commits mailing list