[Xfce4-commits] [xfce/xfce4-panel] 60/73: Always draw panel background

noreply at xfce.org noreply at xfce.org
Sun Feb 26 16:34:41 CET 2017


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

andrzejr pushed a commit to branch master
in repository xfce/xfce4-panel.

commit d3f779cc605b067abe1848efa29343c454c13ddf
Author: Simon Steinbeiss <simon.steinbeiss at elfenbeinturm.at>
Date:   Thu Oct 27 00:09:12 2016 +0200

    Always draw panel background
---
 panel/panel-base-window.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/panel/panel-base-window.c b/panel/panel-base-window.c
index 6e41290..b99cd0d 100644
--- a/panel/panel-base-window.c
+++ b/panel/panel-base-window.c
@@ -564,16 +564,10 @@ panel_base_window_draw (GtkWidget *widget,
       else
         {
           gtk_style_context_get_background_color (ctx, GTK_STATE_NORMAL, &bg_rgba);
+          bg_rgba.alpha = alpha;
           gdk_cairo_set_source_rgba (cr, &bg_rgba);
         }
-
-      /* only do something with the background when compositing is enabled */
-      if (G_UNLIKELY (alpha < 1.00
-          || window->background_style != PANEL_BG_STYLE_NONE))
-        {
-          /* draw the background */
-          cairo_paint (cr);
-        }
+      cairo_paint (cr);
     }
 
   /* draw marching ants selection if the timeout is running */

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


More information about the Xfce4-commits mailing list