[Ohrrpgce] [ohrrpgce/ohrrpgce] gfx_sdl2/KDE: some window resizes lost, so doesn't draw over whole window & wrong mouse position (#1190)

Ralph Versteegen notifications at github.com
Sat Sep 25 03:03:32 PDT 2021


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.

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 `SDL_SetWindowSize` while the user is resizing the window. I'm fixed this by skipping the `SDL_SetWindowSize` in that case.

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.

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/ohrrpgce/ohrrpgce/issues/1190#issuecomment-927098403
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.motherhamster.org/pipermail/ohrrpgce-motherhamster.org/attachments/20210925/bb7dea10/attachment.html>


More information about the Ohrrpgce mailing list