X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=3e463d668732643037b45ff89aa131e3ecd4e4a5;hb=22f38541c5af082805bf08bff1e04aff8fa430dd;hp=b05e34504ec82af9914cb94c59537cb30f5e8deb;hpb=26f66bc932be6313e1fb71d73e60ba5667276ac0;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index b05e3450..3e463d66 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -3,7 +3,7 @@ #include "frame.h" #include "screen.h" #include "action.h" -#include "snap.h" +#include "dispatch.h" #include @@ -73,6 +73,11 @@ void action_close(union ActionData *data) client_close(data->client.c); } +void action_kill(union ActionData *data) +{ + client_kill(data->client.c); +} + void action_shade(union ActionData *data) { client_shade(data->client.c, TRUE); @@ -402,7 +407,7 @@ void action_move(union ActionData *data) int x = data->move.x; int y = data->move.y; - snap_move(c, &x, &y, c->frame->area.width, c->frame->area.height); + dispatch_move(c, &x, &y); frame_frame_gravity(c->frame, &x, &y); /* get where the client should be */ client_configure(c, Corner_TopLeft, x, y, c->area.width, c->area.height,