The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Maximized window resized after alt+tab
LBandy


Joined: 01 Jan 2013
Posts: 38
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!