X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=6a86cf33f6f938506554fa17ff833fa54da3d2d5;hb=b7b4abe0d84b7a820a2ada7a08a0d3d15a86acaf;hp=009851411fb4a99e2d04c7c04edb074a049bfc48;hpb=75ee81d9bf47739b4a8f092d3247465c45684e77;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index 00985141..6a86cf33 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -3,6 +3,7 @@ #include "frame.h" #include "screen.h" #include "action.h" +#include "dispatch.h" #include @@ -29,7 +30,7 @@ void action_free(Action *a) void action_execute(union ActionData *data) { - GError *e; + GError *e = NULL; if (!g_spawn_command_line_async(data->execute.path, &e)) { g_warning("failed to execute '%s': %s", data->execute.path, e->message); @@ -401,8 +402,9 @@ void action_move(union ActionData *data) int x = data->move.x; int y = data->move.y; - /* XXX window snapping/struts */ + 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, TRUE, data->move.final); }