summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-03-29 09:56:12 +0000
committerDana Jansens <danakj@orodu.net>2003-03-29 09:56:12 +0000
commitdbdb330ad5d66030deff867f0b57ccf857497c98 (patch)
tree09b43bab7df9defb8172b32d4923dd40cc945208 /plugins
parenta116f2c6310db702e377e9cd1a95c9a980aba5ae (diff)
use the bottom of the screen for botom snapping! :)
Diffstat (limited to 'plugins')
-rw-r--r--plugins/resistance.c3
1 files changed, 2 insertions, 1 deletions
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: