Hopefully fixed programmatic window resizing.
Window management for Windows (and hopefully Linux) working