Ensure "maximixed" is taken into account when updating window visibility on WM_SIZE