From d3f779cc605b067abe1848efa29343c454c13ddf Mon Sep 17 00:00:00 2001
From: Simon Steinbeiss <simon.steinbeiss@elfenbeinturm.at>
Date: Thu, 27 Oct 2016 00:09:12 +0200
Subject: [PATCH] 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 6e4129047..b99cd0d4a 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 */
-- 
GitLab