X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Factions%2Fmovetoedge.c;h=5941bde97fa73979e0d8c2c89d2340d41152fc25;hb=aa329719b99792a624449b2448abee9e2c67ce94;hp=8a4044beb06edc4a58fe2b468c0c11b667b9ea08;hpb=2a4cd4f6bd9f6b5a43ea6a825e964fb1f4dccd80;p=chaz%2Fopenbox diff --git a/openbox/actions/movetoedge.c b/openbox/actions/movetoedge.c index 8a4044be..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_movetofromedge_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); } }