summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 01:50:01 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 01:50:01 +0000
commit7a6a516b8e3d8ad6b15379eabf6652a6f43eab27 (patch)
tree9428e8773cfd3441d26a3585990d07f8286b1f86 /openbox/action.c
parent739606e39c218ad2f3cb1412267f73e4f3d49e15 (diff)
very cool struts. partial struts actually are partial struts now. possibly way broken with xinerama?
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 6248d143..9d0f9c73 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1430,11 +1430,12 @@ void action_move_to_center(union ActionData *data)
{
ObClient *c = data->client.any.c;
Rect *area;
- area = screen_area_monitor(c->desktop, 0);
+ area = screen_area_monitor(c->desktop, 0, NULL);
client_action_start(data);
client_move(c, area->width / 2 - c->area.width / 2,
area->height / 2 - c->area.height / 2);
client_action_end(data, FALSE);
+ g_free(area);
}
void action_resize_relative_horz(union ActionData *data)
@@ -1897,7 +1898,7 @@ void action_growtoedge(union ActionData *data)
ObClient *c = data->diraction.any.c;
Rect *a;
- a = screen_area(c->desktop);
+ a = screen_area(c->desktop, NULL);
x = c->frame->area.x;
y = c->frame->area.y;
/* get the unshaded frame's dimensions..if it is shaded */
@@ -1956,6 +1957,7 @@ void action_growtoedge(union ActionData *data)
client_action_start(data);
client_move_resize(c, x, y, width, height);
client_action_end(data, FALSE);
+ g_free(a);
}
void action_send_to_layer(union ActionData *data)