<p><a href="https://github.com/b4n" class="user-mention">@b4n</a>, looking at notebook.c it appears that the scintilla widget is focussed on the <code>button-release</code> event.  And it is easier to provoke the problem by clicking on the tab and holding the button down, ie artificially delaying the <code>button-release</code>.  Then sometimes when the button is released it seems to get ignored and the widget does not get focus and so does not update.</p>

<p>If the <code>button-release</code> can get lost in normal operation too then that would explain it.</p>

<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>

<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-164640671">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/ABDrJ_FbZpiHTrZffSpIUhKyuPzgLq4tks5pP4vXgaJpZM4G0TVh.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-164640671"></link>
  <meta itemprop="name" content="View Issue"></meta>
</div>
<meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>