<p>These CSS changes seem to fix it (on Adwaita at least, but although the <code>margin: -2px</code> might not be awesome it should work fairly well in all themes):</p>

<div class="highlight highlight-source-diff"><pre>$ git diff
<span class="pl-c1">diff --git a/data/geany-3.20.css b/data/geany-3.20.css</span>
index 8388818..92bac80 100644
<span class="pl-md">--- a/data/geany-3.20.css</span>
<span class="pl-mi1">+++ b/data/geany-3.20.css</span>
<span class="pl-mdr">@@ -4,5 +4,6 @@</span>
 #geany-close-tab-button {
     outline-offset: 0;
     outline-width: 0;
<span class="pl-md">-    border: 0;</span>
<span class="pl-mi1">+    margin: -2px;</span>
<span class="pl-mi1">+    margin-left: 0;</span>
 }
<span class="pl-c1">diff --git a/data/geany.css b/data/geany.css</span>
index 2fb7964..5b7f322 100644
<span class="pl-md">--- a/data/geany.css</span>
<span class="pl-mi1">+++ b/data/geany.css</span>
<span class="pl-mdr">@@ -4,12 +4,14 @@</span>
 #geany-close-tab-button {
     padding: 0;
 }
<span class="pl-md">-#geany-close-tab-button GtkImage {</span>
<span class="pl-mi1">+#geany-close-tab-button GtkImage /* GTK < 3.20 */ ,</span>
<span class="pl-mi1">+#geany-close-tab-button image /* GTK >= 3.20 */ {</span>
     padding: 0;
 }

 /* use monospaced font in search entries for easier reading of regexp (#1907117) */
<span class="pl-md">-#GeanyDialogSearch GtkEntry {</span>
<span class="pl-mi1">+#GeanyDialogSearch GtkEntry /* GTK < 3.20 */,</span>
<span class="pl-mi1">+#GeanyDialogSearch entry /* GTK >= 3.20 */ {</span>
     font-family: monospace;
 }
</pre></div>

<p>It's a bit annoying widget names don't work at all anymore, but well.</p>

<p>With Adwaita, this makes the button scale down to about 16px just fine, and it makes it possible to set the <code>min-height</code> on <code>notebook tabs tab</code> to <code>0</code> without the button messing with the sizes -- at no font size the mutton is what limits the tab minimum height.</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly or <a href="https://github.com/geany/geany/pull/994#issuecomment-212161379">view it on GitHub</a><img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ1Tbnuev7qmdtmmwiAHIiZkwWOHpks5p5V8hgaJpZM4IEajJ.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
<div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
  <link itemprop="url" href="https://github.com/geany/geany/pull/994#issuecomment-212161379"></link>
  <meta itemprop="name" content="View Pull Request"></meta>
</div>
<meta itemprop="description" content="View this Pull Request on GitHub"></meta>
</div>