use the bottom of the screen for botom snapping! :)

This commit is contained in:
Dana Jansens 2003-03-29 09:56:12 +00:00
parent a116f2c631
commit dbdb330ad5

View file

@ -244,8 +244,9 @@ static void resist_size(Client *c, int *w, int *h, Corner corn)
case Corner_TopRight: case Corner_TopRight:
dlt = lt; dlt = lt;
drb = rb + *h - c->frame->area.height; drb = rb + *h - c->frame->area.height;
g_message("dlt %d drb %d rb %d ab %d", dlt, drb, rb, ab);
if (rb <= ab && drb > ab && drb <= ab + resist.integer) if (rb <= ab && drb > ab && drb <= ab + resist.integer)
*h = ar - lt + 1; *h = ab - lt + 1;
break; break;
case Corner_BottomLeft: case Corner_BottomLeft:
case Corner_BottomRight: case Corner_BottomRight: