Prevent mixing current and next decoration states
frameSizeToClientSize()
uses the current decoration state, however the resize function needs to use the next decoration state, which may contain different borders.
frameSizeToClientSize()
uses the current decoration state, however the resize function needs to use the next decoration state, which may contain different borders.