fix for window maximise

Signed-off-by: Christopher Hall <hsw@ms2.hinet.net>