When leaving fullscreen with enabled smart sizing the window size did shrink due to first resizing the window, then enabling window decorations and finally moving to the correct position.