<p>I'm unsure if this relates to <a class="issue-link js-issue-link" data-error-text="Failed to load issue title" data-id="150268578" data-permission-text="Issue title is private" data-url="https://github.com/geany/geany/issues/1002" data-hovercard-type="issue" data-hovercard-url="/geany/geany/issues/1002/hovercard" href="https://github.com/geany/geany/issues/1002">#1002</a> in any way. The bug is being reported here first as Geany is the only application with the behaviour so far.</p>
<p>For the past year or more, geany's scrollbars haven't repainted properly, as I've observed in a few versions of Lubuntu (Ubuntu with the alternate LXDE desktop environment). This happens on my desktop and numerous Lubuntu VMs. I'm using <code>apt</code> installed geany. I haven't tried building it from source, or normal Ubuntu to see if is happens there.</p>
<p>To reproduce:</p>
<ol>
<li>Start geany</li>
<li>Make a new document</li>
<li>Copy & paste text into the new document, enough to make the document bigger than the available view.</li>
<li>Switch to another desktop (I'm using LXDE's desktop pager)</li>
<li>Switch back to the desktop with Geany</li>
<li>Note the scrollbars have not been repainted, so they show whatever was previously on the screen in the scroll area.</li>
</ol>
<p>This happened in a fresh Lubuntu 18.04 VM I built earlier today.</p>
<p>Geany info (this is geany installed with <code>apt</code>):</p>
<pre><code>$ geany -V
geany 1.32 (built on 2018-01-08 with GTK 3.22.26, GLib 2.54.1)
</code></pre>
<p>System info:</p>
<pre><code>$ lsb_release -a
Distributor ID: Ubuntu
Description:    Ubuntu 18.04.3 LTS
Release:        18.04
Codename:       bionic

$ uname -sr
Linux 4.15.0-58-generic
</code></pre>
<p>Here's the before/Geany freshly started view on a new VM:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/526793/63740506-a5b16880-c8d4-11e9-8d75-c75ac60fd58d.png"><img src="https://user-images.githubusercontent.com/526793/63740506-a5b16880-c8d4-11e9-8d75-c75ac60fd58d.png" alt="01_freshly_started" style="max-width:100%;"></a></p>
<p>After switching away, then back, the scrollbars have the desktop colour:<br>
<a target="_blank" rel="noopener noreferrer" href="https://user-images.githubusercontent.com/526793/63740520-b235c100-c8d4-11e9-89d9-d07f6893705b.png"><img src="https://user-images.githubusercontent.com/526793/63740520-b235c100-c8d4-11e9-89d9-d07f6893705b.png" alt="02_no_repaint" style="max-width:100%;"></a></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, <a href="https://github.com/geany/geany/issues/2277?email_source=notifications&email_token=AAIOWJ5BHM7WF5TCVY3TKSLQGSURZA5CNFSM4IP4PS72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHRJYAA">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ3H3KMI7DYECALYJ33QGSURZANCNFSM4IP4PS7Q">mute the thread</a>.<img src="https://github.com/notifications/beacon/AAIOWJ7FZPFPCAM6MUHG3U3QGSURZA5CNFSM4IP4PS72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHRJYAA.gif" height="1" width="1" alt="" /></p>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/geany/geany/issues/2277?email_source=notifications\u0026email_token=AAIOWJ5BHM7WF5TCVY3TKSLQGSURZA5CNFSM4IP4PS72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHRJYAA",
"url": "https://github.com/geany/geany/issues/2277?email_source=notifications\u0026email_token=AAIOWJ5BHM7WF5TCVY3TKSLQGSURZA5CNFSM4IP4PS72YY3PNVWWK3TUL52HS4DFUVEXG43VMWVGG33NNVSW45C7NFSM4HHRJYAA",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>