<p></p>
<p>This doesn't happen under xfce4. I was running KDE 4 at the time, but my distro has since upgraded to KDE 5, and it's still  happening on that, including under latest SDL git.</p>
<p>Through trial and error, after comparing with a simple test program that didn't suffer this problem, I figured out that the problem is calling <code>SDL_SetWindowSize</code> while the user is resizing the window. I'm fixed this by skipping the <code>SDL_SetWindowSize</code> in that case.</p>
<p>This bug sounds like the same thing as another bug I noticed in gfx_sdl/sdl2 (under at least xfce4), where if the user is resizing the window (or at least has the mouse button held down on the window frame) at the moment the engine tries to resize the window (e.g. on starting a game) then it doesn't resize properly. But that doesn't happen if the window isn't resizable either before or after the forced-resize, so it's very minor and I'll ignore it.</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/ohrrpgce/ohrrpgce/issues/1190#issuecomment-927098403">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AMWGWZTUTQLXWPWDOCOWRR3UDWM7JANCNFSM4WH76WCQ">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/AMWGWZQK24K7MOIV4RPMHNTUDWM7JA5CNFSM4WH76WC2YY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOG5BGMIY.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/ohrrpgce/ohrrpgce/issues/1190#issuecomment-927098403",
"url": "https://github.com/ohrrpgce/ohrrpgce/issues/1190#issuecomment-927098403",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>