summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-06-13 11:15:51 +0000
committerDana Jansens <danakj@orodu.net>2007-06-13 11:15:51 +0000
commiteb6a2e9c4b334f53d714a2e7f10f73c63c3d2edd (patch)
tree82802298c0d4bb5acdb00f0531b626753cb2dec1 /openbox/action.c
parent97d4f66cd8db231531e2b425390ff1b4a74e5358 (diff)
xinerama support like crazy for struts and everything else too. this probably crashes but its been way too long without a commit.
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c
index 9d0f9c73..6ba52c89 100644
--- a/openbox/action.c
+++ b/openbox/action.c
@@ -1430,7 +1430,7 @@ void action_move_to_center(union ActionData *data)
{
ObClient *c = data->client.any.c;
Rect *area;
- area = screen_area_monitor(c->desktop, 0, NULL);
+ area = screen_area(c->desktop, client_monitor(c), NULL);
client_action_start(data);
client_move(c, area->width / 2 - c->area.width / 2,
area->height / 2 - c->area.height / 2);
@@ -1898,7 +1898,7 @@ void action_growtoedge(union ActionData *data)
ObClient *c = data->diraction.any.c;
Rect *a;
- a = screen_area(c->desktop, NULL);
+ a = screen_area(c->desktop, SCREEN_AREA_ALL_MONITORS, &c->frame->area);
x = c->frame->area.x;
y = c->frame->area.y;
/* get the unshaded frame's dimensions..if it is shaded */