On a window resize event, only set the window size if it's different
Fixes issue on Linux where the window size is constantly updated, and window rabidly steals focus.
Fixes issue on Linux where the window size is constantly updated, and window rabidly steals focus.