<p></p>
<p>Numbers are for illustration.</p>
<ol>
<li>
<p>Geany started.  Reads and restores config in non-max state, 400x300, sidebar at 300.</p>
</li>
<li>
<p>Geany maximized.  640x480.  GTK magic: sidebar at 540.</p>
</li>
<li>
<p>User moves sidebar to position 500.</p>
</li>
<li>
<p>Geany closed.<br>
a. Calculate adjusted sidebar position as current sidebar position - maximized width (current) + non-maximized width (previous) = 500 - 640 + 480 = 340.<br>
b. Save maximized state (true).  Save original geometry (400x300).  Save adjusted sidebar position.</p>
</li>
</ol>

<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/2976#issuecomment-957076162">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AAIOWJ2D6NNA2YPEZZ346TTUJ5NPNANCNFSM5HEHLOJQ">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/AAIOWJ3NLJO2K3T6A6T72ADUJ5NPNA5CNFSM5HEHLOJ2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOHEF5FQQ.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/2976#issuecomment-957076162",
"url": "https://github.com/geany/geany/issues/2976#issuecomment-957076162",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>