Closed GiantBlargg closed 1 month ago
Weird, here's what is happening when the 640x480 window is restored after being maximized:
KDE's behavior seems wrong here, as in the floating state, the size is just a hint that the client is free to ignore.
KDE fixed the negative extents bug, but SDL needs some cleanup around this too.
On Wayland windows will shrink in size by few pixels after being maximized and un-maximized. In some cases this can allow the window to have zero area, causing a crash.
After unmaximizing 2 resize events are emitted. On SDL2 a slightly too large size is sent before the correct size. But SDL3 sends the correct size followed by a slightly too small size.
If SDL uses X11 (XWayland), instead of shrinking the restored window will be further down the screen.
Neither issue occurs with a borderless window, which makes me wonder if it's some problematic border-correction routine.
Neither of these problems appear in SDL2.
I haven't tested with other window managers so I don't know if this is KWin specific.
SDL3 d604555 KWin 6.1.1
Test program: