Resizable and borderless Window top white space (WINDOWS 10)


I am creating a borderless window that it is resizable (no problem for non resizable window). Setting it resizable makes a white gap (space) appear on top of the window (c.f.Image) where I can not draw.

Should I report this as a bug ? Is there a way to fix it ?

(code to create window :
SDL_CreateWindow(ws2s(info.title).c_str(), x, y, width, height, SDL_WINDOW_BORDERLESS | SDL_WINDOW_RESIZABLE);
SDL 2.0.5 Windows 10 vsc 14.0

Thank you.

This seems to be an issue with 2.0.5 which will be fixed in the upcoming 2.0.6. At least it’s not showing up for me with that version. You can compile it yourself or grab a version from the buildbot to test it.

thank you for this, it indeed remove the while gap but then the window is no more resizable with the mouse

Oh, I wasn’t aware of that. To my knowledge, borderless windows are not resizable in SDL. If you think they should be you can propose it on the bug tracker.

Borderless windows are not resizable in Windows and I’m doubtful SDL would be able to override that.