Fix local window size adjustments

Now shrinking local window size properly limits the amount of
WINDOW_UPDATE value so that shrinked window is honored.