diff options
author | sabetts <sabetts> | 2001-03-03 09:31:32 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-03-03 09:31:32 +0000 |
commit | c0e4fdeeb4539a384fc5fcb8c51d6751e4be9123 (patch) | |
tree | 1bc9a7803eb6515ba8f8b1ea487de8b9e517f0a4 /src | |
parent | 69505f9912be0598e0a429f2de510cb701ac0ff9 (diff) | |
download | ratpoison-c0e4fdeeb4539a384fc5fcb8c51d6751e4be9123.zip |
fixes to maximize_transient
Diffstat (limited to 'src')
-rw-r--r-- | src/ChangeLog | 1 | ||||
-rw-r--r-- | src/manage.c | 2 |
2 files changed, 3 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 43d1ff4..edfc2b8 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -2,6 +2,7 @@ * manage.c (maximize_normal): windows with resize increments resize properly when their original size is > the screen size. + (maximize_transient): likewise 2001-03-02 shawn <sabetts@diggin.lamenet.tmp> diff --git a/src/manage.c b/src/manage.c index 5ef160a..07569d8 100644 --- a/src/manage.c +++ b/src/manage.c @@ -313,11 +313,13 @@ maximize_transient (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; } |