improve fullscreen toogle

fast toogling of fullscreen could led to wrong size
of the restored window.
save and restore windowState and BorderStyle