use the top when snapping to the top

This commit is contained in:
Dana Jansens 2003-03-29 19:47:36 +00:00
parent 56713e45fb
commit 36b90c320d

View file

@ -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;
}