Maximized window resized after alt+tab

"LBandy" <[email protected]>
Newsgroups gmane.comp.lib.sdl
Message-ID <[email protected]>
Hey guys,

I'm facing an issue when creating a windows using the SDL_WINDOW_RESIZABLE flag. I use SDL_MaximizeWindow() to set the window to the max size, but after pressing Alt+Tab twice, the window resizes to it's original size, which was used before it got maximized. It's strange as it doesn't happen for the first time, only for the second, but it always happen after the second Alt+Tab. For the sake of this test, there weren't any handling on window events.

Any advice how can this be fixed, as having the program auto-resizing without being prompted is more than annoying, and I don't want to opt for a non-resizable window.

Thank you!

------------------------
ePic Character Generator - endless character stream in your games using SDL 2.0:
http://www.epicgenerator.net
http://store.steampowered.com/app/408930

_______________________________________________
SDL mailing list
[email protected]
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.