From a734d018b01286f7ac43acfc60a42a21a11378c0 Mon Sep 17 00:00:00 2001
From: Megax <megax@yeahunter.hu>
Date: Thu, 20 Oct 2016 22:29:40 +0200
Subject: [PATCH] * Fixes #585

---
 src/gtk-3.20/scss/widgets/_toolbar.scss | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/gtk-3.20/scss/widgets/_toolbar.scss b/src/gtk-3.20/scss/widgets/_toolbar.scss
index 133773a..12f28c5 100644
--- a/src/gtk-3.20/scss/widgets/_toolbar.scss
+++ b/src/gtk-3.20/scss/widgets/_toolbar.scss
@@ -218,4 +218,13 @@
             border-top-right-radius: $roundness;
         }
     }
+
+    // Fixed: https://github.com/numixproject/numix-gtk-theme/issues/585
+    // workaround for ugly Ubuntu-related CSD patches
+    .background:not(.csd):not(.ssd):not(.solid-csd) headerbar {
+        &, &:not(:last-child) {
+            border-radius: 0;
+            border-top-color: transparent;
+        }
+    }
 }