]> Dogcows Code - chaz/openbox/commitdiff
use the resize increment when resizing relative
authorDana Jansens <danakj@orodu.net>
Mon, 19 May 2003 04:13:06 +0000 (04:13 +0000)
committerDana Jansens <danakj@orodu.net>
Mon, 19 May 2003 04:13:06 +0000 (04:13 +0000)
openbox/action.c

index 9aeeff5800fd2713de32f0124ae2a6a748029ffa..7f1622fadf29db1e2d121899af7ee0d58f3fd367 100644 (file)
@@ -633,7 +633,8 @@ void action_resize_relative_horz(union ActionData *data)
     Client *c = data->relative.c;
     if (c)
         client_configure(c, Corner_TopLeft, c->area.x, c->area.y,
-                         c->area.width + data->relative.delta,
+                         c->area.width +
+                         data->relative.delta * c->size_inc.width,
                          c->area.height, TRUE, TRUE);
 }
 
@@ -642,7 +643,8 @@ void action_resize_relative_vert(union ActionData *data)
     Client *c = data->relative.c;
     if (c && !c->shaded)
         client_configure(c, Corner_TopLeft, c->area.x, c->area.y,
-                         c->area.width, c->area.height + data->relative.delta,
+                         c->area.width, c->area.height +
+                         data->relative.delta * c->size_inc.height,
                          TRUE, TRUE);
 }
 
This page took 0.025848 seconds and 4 git commands to generate.