summaryrefslogtreecommitdiff
path: root/openbox/actions/growtoedge.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-28 05:18:01 +0000
committerDana Jansens <danakj@orodu.net>2007-06-28 05:18:01 +0000
commit01a35904fec67a7f92a0eb7f19457e79ca3d0988 (patch)
tree6fbe5902ffe87e9046f05bb9919da1e5bedee933 /openbox/actions/growtoedge.c
parentd9699d14700da5f227f6e5ad708519b1efdd874d (diff)
rewrote the movetoedge code so it works with both types of edges (to edge and from edge)
Diffstat (limited to 'openbox/actions/growtoedge.c')
-rw-r--r--openbox/actions/growtoedge.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/openbox/actions/growtoedge.c b/openbox/actions/growtoedge.c
index 5d4647f7..a5b24e37 100644
--- a/openbox/actions/growtoedge.c
+++ b/openbox/actions/growtoedge.c
@@ -74,11 +74,13 @@ static gboolean run_func(ObActionsData *data, gpointer options)
width = c->area.width + c->frame->size.left + c->frame->size.right;
height = c->area.height + c->frame->size.top + c->frame->size.bottom;
+#if 0
+ dest = client_directional_edge_search(c, o->dir);
+
switch(o->dir) {
case OB_DIRECTION_NORTH:
if (c->shaded) break; /* don't allow vertical resize if shaded */
- dest = client_directional_edge_search(c, o->dir, FALSE);
if (a->y == y)
height = height / 2;
else {
@@ -87,7 +89,6 @@ static gboolean run_func(ObActionsData *data, gpointer options)
}
break;
case OB_DIRECTION_WEST:
- dest = client_directional_edge_search(c, o->dir, FALSE);
if (a->x == x)
width = width / 2;
else {
@@ -98,7 +99,6 @@ static gboolean run_func(ObActionsData *data, gpointer options)
case OB_DIRECTION_SOUTH:
if (c->shaded) break; /* don't allow vertical resize if shaded */
- dest = client_directional_edge_search(c, o->dir, FALSE);
if (a->y + a->height == y + c->frame->area.height) {
height = c->frame->area.height / 2;
y = a->y + a->height - height;
@@ -108,7 +108,6 @@ static gboolean run_func(ObActionsData *data, gpointer options)
height -= (height - c->frame->area.height) % c->size_inc.height;
break;
case OB_DIRECTION_EAST:
- dest = client_directional_edge_search(c, o->dir, FALSE);
if (a->x + a->width == x + c->frame->area.width) {
width = c->frame->area.width / 2;
x = a->x + a->width - width;
@@ -129,6 +128,7 @@ static gboolean run_func(ObActionsData *data, gpointer options)
client_move_resize(c, x, y, width, height);
actions_client_move(data, TRUE);
+#endif
g_free(a);
}