Discussion:
[SDL] Maximized window resized after alt+tab
LBandy
2016-10-11 16:20:25 UTC
Permalink
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

Loading...