diff options
author | sabetts <sabetts> | 2001-03-03 09:29:50 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-03-03 09:29:50 +0000 |
commit | 69505f9912be0598e0a429f2de510cb701ac0ff9 (patch) | |
tree | c0069c3edeeac5edfcab97537e086f787d43400a | |
parent | 2219b80064e74cceec53226920bcd9f2b6c1be3f (diff) | |
download | ratpoison-69505f9912be0598e0a429f2de510cb701ac0ff9.zip |
fixes to maximize_normal
-rw-r--r-- | src/ChangeLog | 5 | ||||
-rw-r--r-- | src/manage.c | 2 |
2 files changed, 7 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c1532c2..43d1ff4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2001-03-03 shawn <sabetts@livingston> + + * manage.c (maximize_normal): windows with resize increments + resize properly when their original size is > the screen size. + 2001-03-02 shawn <sabetts@diggin.lamenet.tmp> * main.c (print_version): updated copyright notice. diff --git a/src/manage.c b/src/manage.c index 38d9c93..5ef160a 100644 --- a/src/manage.c +++ b/src/manage.c @@ -364,11 +364,13 @@ maximize_normal (rp_window *win) amount = maxx - win->width; amount -= amount % win->hints->width_inc; + if (amount < 0) amount -= win->hints->width_inc; PRINT_DEBUG ("amount x: %d\n", amount); maxx = amount + win->width; amount = maxy - win->height; amount -= amount % win->hints->height_inc; + if (amount < 0) amount -= win->hints->height_inc; PRINT_DEBUG ("amount y: %d\n", amount); maxy = amount + win->height; } |