Failing to programatically resize window =(