<blockquote>
<p>I just noticed that the tab highlight is not moving either, so its not just Scintilla. The window header changes to the new name and the status bar to the new line no, so I know I clicked the tab, and Geany got it, but the notebook isn't updating.</p>
</blockquote>

<p>If the notebook itself also misses updating, I'm afraid there's something wrong outside Scintilla at least.  And if triggering an UI update helps (e.g. the display is not consistent with the underlying state, rather than the switch not having actually been made), I'm afraid it'd be a weird GTK issue.</p>

<blockquote>
<p>Why is the focus on <code>button-release</code> which is an indeterminate time in the future, instead of when the switch signal happens?</p>
</blockquote>

<p>Not sure, but I guess it's do avoid focusing if tab switch occurred by something else than a click (i.e. keybinding or alike).</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/geany/geany/issues/807#issuecomment-164776060">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ9EjLIpookVhDDmmCi98hEaJzfG2ks5pQBdRgaJpZM4G0TVh.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/issues/807#issuecomment-164776060"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>