diff options
| author | Dana Jansens <danakj@orodu.net> | 2007-06-13 23:34:48 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2007-06-13 23:34:48 +0000 |
| commit | 0a9a005891392f722082f648f49706616c62fd1a (patch) | |
| tree | c0c9cf4050af4506ebe8706ec7140fa3afdf4549 | |
| parent | 4669203fd8f7dc2ac4aef40ba1a2ce4be404b00b (diff) | |
fix move to center on xinerama
| -rw-r--r-- | openbox/action.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/openbox/action.c b/openbox/action.c index 7c799693..7bc8ab65 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1462,8 +1462,8 @@ void action_move_to_center(union ActionData *data) Rect *area; 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); + client_move(c, area->x + area->width / 2 - c->area.width / 2, + area->y + area->height / 2 - c->area.height / 2); client_action_end(data, FALSE); g_free(area); } |
