This starts up fine, and sets the Window to be maximized. However, when I open up another window (any other program), and then click it, so the SDL program loses focus, when I click back inside the window of the SDL program, it receives a Window event:
And being resized to the minimum size I’ve set. Is there a way to prevent this functionality, and only have the window resized when the actual resize button pressed, or the screen borders are dragged?
Thank you!------------------------
ePic Character Generator - endless character stream in your games using SDL 2.0:
SDL_WINDOWEVENT_RESIZED has with and height parameters, you could be
surprised it is the actual window size. A chance to refresh,to redraw the
window, by the window manager. If you don’t honor that arguments and just
resize to min you know what is unexpected behaviour.
On another interpretation, dude, an UNMAXIMIZE event being received, that
would be an error in the window events core parser.
P.S.: Epic is a Registered Trademark by Epic. Epic is owner of the Epic
Registered Trademark. Epic owns Epic. Epic is owned by Epic. All other
trademarks are owned by their other respective owners. All other owners own
their other respective trademarks.
El 31/07/2015 23:35, “LBandy” escribi?:> Hello guys,
This starts up fine, and sets the Window to be maximized. However, when I
open up another window (any other program), and then click it, so the SDL
program loses focus, when I click back inside the window of the SDL
program, it receives a Window event:
And being resized to the minimum size I’ve set. Is there a way to prevent
this functionality, and only have the window resized when the actual resize
button pressed, or the screen borders are dragged?
I’m not sure you understand my question correctly, but appreciate your efforts.
In other words: is there a way to prevent the window from receiving an UNMAXIMIZE event, without the unmaximize button being pressed, or the borders are being touched?------------------------
ePic Character Generator - endless character stream in your games using SDL 2.0: