#include "frame.h"
#include "screen.h"
#include "action.h"
+#include "dispatch.h"
#include <glib.h>
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);
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);
}