Fix Windows min/max animation on frameless windows

- Frameless windows disappeared or appears when minimized and maximized
on Windows. This commit fixes that.
Lines should be <= 80 characters long.

Also comments tend to be full sentences, e.g. has first character capitalized and has a period in the end.