Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Only spawn Resized event when window size changes. #878
I just tested it.
However, some problems remain: one event is pushed on window creation (initializing properly
I talked with @kimci86 at IRC about this. At some place he got indeed multiple Resized events, but in a way that can't be avoided: kimci's window manager reported size changes, and that's what the SFML event is for. ;-)
Keep in mind that manually altering the window might often result in 2 events, as the window manager takes over and adjusts the size, so that the window decoration fits etc.