Merge pull request #6330 from stenzek/resizing Improve handling of surface change/resize events in graphics backends