[SDL] SetWindowFlags?

Ryan C. Gordon icculus at icculus.org
Tue Jul 19 20:46:27 PDT 2011

> I've noticed that SDL 1.3 doesn't have a SetWindowFlags function... but it
> has a GetWindowFlags. If one wanted to change the style of a window at
> runtime (as I do), such a method would prove very useful. I know that, in
> the Win32 API, SetWindowLongPtr is the key function for changing window
> flags, but I'm not sure how it is in X11 (there's no doubt in my mind it's
> possible). Is there any chance we could get this put into SDL 1.3? Is there
> a reason it's not in there now?

I think all of the flags except SDL_WINDOW_OPENGL, SDL_WINDOW_RESIZABLE 
and SDL_WINDOW_BORDERLESS can be toggled through other APIs ... 
SDL_WINDOW_OPENGL should probably not be toggled (just create a new window).

Is it the BORDERLESS or RESIZABLE flag you care about?


More information about the SDL mailing list