<p></p>
<p><a class="user-mention" data-hovercard-type="user" data-hovercard-url="/users/elextr/hovercard" data-octo-click="hovercard-link-click" data-octo-dimensions="link_type:self" href="https://github.com/elextr">@elextr</a> When I change <code>keyfile.c</code> to not save size and position when maximized, the normal window size restores properly.  But the msgwin and sidebar don't.</p>
<div class="highlight highlight-source-c"><pre><span class="pl-c"><span class="pl-c">/*</span> Save window size and position only when not maximized <span class="pl-c">*/</span></span>
wstate = gdk_window_get_state(gtk_widget_get_window(main_widgets.window));
<span class="pl-k">if</span> (wstate & GDK_WINDOW_STATE_MAXIMIZED)
        ui_prefs.geometry[<span class="pl-c1">4</span>] = <span class="pl-c1">1</span>;
<span class="pl-k">else</span>
{
        <span class="pl-c1">gtk_window_get_position</span>(<span class="pl-c1">GTK_WINDOW</span>(main_widgets.<span class="pl-smi">window</span>), &ui_prefs.<span class="pl-smi">geometry</span>[<span class="pl-c1">0</span>], &ui_prefs.<span class="pl-smi">geometry</span>[<span class="pl-c1">1</span>]);
        <span class="pl-c1">gtk_window_get_size</span>(<span class="pl-c1">GTK_WINDOW</span>(main_widgets.<span class="pl-smi">window</span>), &ui_prefs.<span class="pl-smi">geometry</span>[<span class="pl-c1">2</span>], &ui_prefs.<span class="pl-smi">geometry</span>[<span class="pl-c1">3</span>]);
        ui_prefs.<span class="pl-smi">geometry</span>[<span class="pl-c1">4</span>] = <span class="pl-c1">0</span>;
}
<span class="pl-en">g_key_file_set_integer_list</span>(config, PACKAGE, <span class="pl-s"><span class="pl-pds">"</span>geometry<span class="pl-pds">"</span></span>, ui_prefs.geometry, <span class="pl-c1">5</span>);</pre></div>

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