From c0e4fdeeb4539a384fc5fcb8c51d6751e4be9123 Mon Sep 17 00:00:00 2001 From: sabetts Date: Sat, 3 Mar 2001 09:31:32 +0000 Subject: fixes to maximize_transient --- src/manage.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/manage.c') 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; } -- cgit v1.2.3