diff options
Diffstat (limited to 'src/manage.c')
-rw-r--r-- | src/manage.c | 2 |
1 files changed, 2 insertions, 0 deletions
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; } |