]> Dogcows Code - chaz/openbox/blobdiff - plugins/resistance.c
use the number for sendtodesktop
[chaz/openbox] / plugins / resistance.c
index a92047af0da1dbbafe1f77fef31ec56522a690b0..30741d80b83fea40f5e2ef004b0dba320e783ae9 100644 (file)
@@ -244,15 +244,16 @@ 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:
         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;
     }
 
This page took 0.025636 seconds and 4 git commands to generate.