From dbdb330ad5d66030deff867f0b57ccf857497c98 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sat, 29 Mar 2003 09:56:12 +0000 Subject: [PATCH] use the bottom of the screen for botom snapping! :) --- plugins/resistance.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/resistance.c b/plugins/resistance.c index a92047af..5c4d8174 100644 --- a/plugins/resistance.c +++ b/plugins/resistance.c @@ -244,8 +244,9 @@ static void resist_size(Client *c, int *w, int *h, Corner corn) case Corner_TopRight: dlt = lt; 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) - *h = ar - lt + 1; + *h = ab - lt + 1; break; case Corner_BottomLeft: case Corner_BottomRight: -- 2.39.2