comparison src/window.c @ 40543:9461cfa8d18d

(grow_mini_window): Handle case that the root window is already smaller than the nominal mininum height.
author Gerd Moellmann <gerd@gnu.org>
date Wed, 31 Oct 2001 10:06:10 +0000
parents 34107437eb4d
children 4e8c66bd2abb
comparison
equal deleted inserted replaced
40542:93f6c74a2f60 40543:9461cfa8d18d
3749 root = XWINDOW (FRAME_ROOT_WINDOW (f)); 3749 root = XWINDOW (FRAME_ROOT_WINDOW (f));
3750 if (delta) 3750 if (delta)
3751 { 3751 {
3752 int min_height = window_min_size (root, 0, 0, 0); 3752 int min_height = window_min_size (root, 0, 0, 0);
3753 if (XFASTINT (root->height) - delta < min_height) 3753 if (XFASTINT (root->height) - delta < min_height)
3754 delta = XFASTINT (root->height) - min_height; 3754 /* Note that the roor window may already be smaller than
3755 min_height. */
3756 delta = max (0, XFASTINT (root->height) - min_height);
3755 } 3757 }
3756 3758
3757 if (delta) 3759 if (delta)
3758 { 3760 {
3759 /* Save original window sizes and positions, if not already done. */ 3761 /* Save original window sizes and positions, if not already done. */