summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
authorsabetts <sabetts>2000-12-15 19:52:28 +0000
committersabetts <sabetts>2000-12-15 19:52:28 +0000
commit52d00ac0d9d32cbfd4d2e09dbdf91ca341e99c4d (patch)
tree0249e3c89745c1ff761e42c0e3e2bbbd7ef43740 /src/actions.c
parentf9efa906115577e8f68d4f8110402890eee6d9d7 (diff)
downloadratpoison-52d00ac0d9d32cbfd4d2e09dbdf91ca341e99c4d.zip
* actions.c (maximize): increment size in hints->width_inc and hints->height_inc intervals
* manage.c (manage): set the dimension members of the rp_window struct
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c13
1 files changed, 11 insertions, 2 deletions
diff --git a/src/actions.c b/src/actions.c
index 3bb6bab..84be700 100644
--- a/src/actions.c
+++ b/src/actions.c
@@ -362,8 +362,17 @@ maximize (void *data)
by the window */
if (win->hints->flags & PResizeInc)
{
- maxx -= maxx % win->hints->width_inc;
- maxy -= maxy % win->hints->height_inc;
+ int amount;
+
+ amount = maxx - win->width;
+ amount -= 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;
+ PRINT_DEBUG ("amount y: %d\n", amount);
+ maxy = amount + win->height;
}
PRINT_DEBUG ("maxsize: %d %d\n", maxx, maxy);