]> Dogcows Code - chaz/openbox/commitdiff
use the bottom of the screen for botom snapping! :)
authorDana Jansens <danakj@orodu.net>
Sat, 29 Mar 2003 09:56:12 +0000 (09:56 +0000)
committerDana Jansens <danakj@orodu.net>
Sat, 29 Mar 2003 09:56:12 +0000 (09:56 +0000)
plugins/resistance.c

index a92047af0da1dbbafe1f77fef31ec56522a690b0..5c4d817406aa6d4b8d0d5575422aee29604f1dd2 100644 (file)
@@ -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:
This page took 0.028396 seconds and 4 git commands to generate.