Save the current window size, then attempt the resize. If the new size is the same as the old, then either it failed or the window just happened to be exactly the right size. You can differentiate the two by resizing it again to something different.
Save the current window size, then attempt the resize. If the new size is the same as the old, then either it failed or the window just happened to be exactly the right size. You can differentiate the two by resizing it again to something different.