summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-01 04:46:29 +0000
committerDana Jansens <danakj@orodu.net>2007-05-01 04:46:29 +0000
commit55d2916c1e24e021d9b9692d2373dc4afff4c5c2 (patch)
treef9e4a365b33d3a94ae5481a4ff11470f11482c32 /openbox/action.c
parentc991482154d390e46298afb12d213448cc120563 (diff)
a whole lot of changes to the moving/resizing code. it was broken for non-northwest gravities. now it is not. at least, that is the idea.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 80b0a8f1..f57ab605 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1394,7 +1394,7 @@ void action_resize_relative(union ActionData *data)
h = oh + data->relative.deltay * c->size_inc.height
+ data->relative.deltayu * c->size_inc.height;
- client_try_configure(c, OB_CORNER_TOPLEFT, &x, &y, &w, &h, &lw, &lh, TRUE);
+ client_try_configure(c, &x, &y, &w, &h, &lw, &lh, TRUE);
client_move_resize(c, x + (ow - w), y + (oh - h), w, h);
client_action_end(data);
}
@@ -1795,7 +1795,7 @@ void action_movetoedge(union ActionData *data)
default:
g_assert_not_reached();
}
- frame_frame_gravity(c->frame, &x, &y);
+ frame_frame_gravity(c->frame, &x, &y, c->area.width, c->area.height);
client_action_start(data);
client_move(c, x, y);
client_action_end(data);
@@ -1859,9 +1859,9 @@ void action_growtoedge(union ActionData *data)
default:
g_assert_not_reached();
}
- frame_frame_gravity(c->frame, &x, &y);
width -= c->frame->size.left + c->frame->size.right;
height -= c->frame->size.top + c->frame->size.bottom;
+ frame_frame_gravity(c->frame, &x, &y, width, height);
client_action_start(data);
client_move_resize(c, x, y, width, height);
client_action_end(data);