This fixes a bug when using the SDL2 backend: When expanding the main window by dragging the right hand border, the height of the window increases in addition to the width.
The solution is to not resize the window again in response to a resize event. :)
Thanks, in in r9034