From: Dana Jansens Date: Sat, 29 Mar 2003 19:47:36 +0000 (+0000) Subject: use the top when snapping to the top X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=36b90c320ddcaf4ccb6a03f3185fd380f626644a;p=chaz%2Fopenbox use the top when snapping to the top --- diff --git a/plugins/resistance.c b/plugins/resistance.c index 5c4d8174..30741d80 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -253,7 +253,7 @@ static void resist_size(Client *c, int *w, int *h, Corner corn) dlt = lt - *h + c->frame->area.height; drb = rb; if (lt >= at && dlt < at && dlt >= at - resist.integer) - *h = rb - al + 1; + *h = rb - at + 1; break; }