X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fmovetoedge.c;h=5941bde97fa73979e0d8c2c89d2340d41152fc25;hb=299687110d478a4928932f72031c345b27a01840;hp=38559a6cba3fa5436b3f80bf0fcca901fc835e08;hpb=92bf35e33029d18b5030a803aabb7ce2ca00cf52;p=chaz%2Fopenbox diff --git a/openbox/actions/movetoedge.c b/openbox/actions/movetoedge.c index 38559a6c..5941bde9 100644 --- a/openbox/actions/movetoedge.c +++ b/openbox/actions/movetoedge.c @@ -13,7 +13,7 @@ static gpointer setup_func(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node); static void free_func(gpointer options); static gboolean run_func(ObActionsData *data, gpointer options); -void action_movetoedge_startup() +void action_movetoedge_startup(void) { actions_register("MoveToEdge", setup_func, @@ -67,9 +67,9 @@ static gboolean run_func(ObActionsData *data, gpointer options) client_find_move_directional(data->client, o->dir, &x, &y); if (x != data->client->area.x || y != data->client->area.y) { - actions_client_move(data, FALSE); - client_move(data->client, x, y); actions_client_move(data, TRUE); + client_move(data->client, x, y); + actions_client_move(data, FALSE); } }