fix move to center on xinerama
This commit is contained in:
parent
4669203fd8
commit
0a9a005891
1 changed files with 2 additions and 2 deletions
|
@ -1462,8 +1462,8 @@ void action_move_to_center(union ActionData *data)
|
||||||
Rect *area;
|
Rect *area;
|
||||||
area = screen_area(c->desktop, client_monitor(c), NULL);
|
area = screen_area(c->desktop, client_monitor(c), NULL);
|
||||||
client_action_start(data);
|
client_action_start(data);
|
||||||
client_move(c, area->width / 2 - c->area.width / 2,
|
client_move(c, area->x + area->width / 2 - c->area.width / 2,
|
||||||
area->height / 2 - c->area.height / 2);
|
area->y + area->height / 2 - c->area.height / 2);
|
||||||
client_action_end(data, FALSE);
|
client_action_end(data, FALSE);
|
||||||
g_free(area);
|
g_free(area);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue