X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;ds=sidebyside;f=openbox%2Faction.c;h=6ba52c8959f13d140fbea9a3f5f0e1a7ae3adb08;hb=eb6a2e9c4b334f53d714a2e7f10f73c63c3d2edd;hp=6248d143ee8c14425c9262385546345edbc702af;hpb=c51d6ebe1152876bfa6d02b5174489e016d2c830;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 6248d143..6ba52c89 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(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_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, 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 */ @@ -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)