<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/eht16/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/eht16">@eht16</a> if you can try and debug it, I suppose you'll see that the value you get with <code>gtk_paned_get_position()</code> is smaller than the one set with <code>gtk_paned_set_position()</code> a couple ms before?  If so, a sad hack could be something like:</p>
<div class="highlight highlight-source-c"><pre><span class="pl-en">gtk_paned_set_position</span>(paned, pos);
<span class="pl-k">for</span> (<span class="pl-k">int</span> i = <span class="pl-c1">1</span>; i < SOMELIMIT && gtk_paned_get_position(paned) < pos; i++) {
    <span class="pl-c1">gtk_paned_set_position</span>(paned, pos + i);
}</pre></div>
<p>or a smarter version that would guess the delta from the actual difference, if that can give useful info.</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/2591#issuecomment-912552971">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJY3TD4A73UFSFWG73LUADGWPANCNFSM4RTU2IAA">unsubscribe</a>.<br />Triage notifications on the go with GitHub Mobile for <a href="https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675">iOS</a> or <a href="https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub">Android</a>.
<img src="https://github.com/notifications/beacon/AAIOWJZGC7RPDF3IP64W3WLUADGWPA5CNFSM4RTU2IAKYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOGZSHICY.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/2591#issuecomment-912552971",
"url": "https://github.com/geany/geany/issues/2591#issuecomment-912552971",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>