X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Faction.c;h=e6f6a9320acc069672e57b5e1971f812653f0cc8;hb=72ee5557c2b4d4a9266aa68cbe30d6866589bd1a;hp=cf2c03079e9d715f94bc2945941950a31ffbad8a;hpb=4a6e98cad8dc8a8ca4006886615f4c4a7a80b02a;p=chaz%2Fopenbox diff --git a/openbox/action.c b/openbox/action.c index cf2c0307..e6f6a932 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -23,7 +23,7 @@ Action *action_new(void (*func)(union ActionData *data)) void action_free(Action *a) { /* deal with pointers */ - if (a->func == action_execute) + if (a->func == action_execute || a->func == action_restart) g_free(a->data.execute.path); g_free(a); @@ -408,6 +408,8 @@ void action_move(union ActionData *data) int x = data->move.x; int y = data->move.y; + if (!client_normal(c)) return; + dispatch_move(c, &x, &y); frame_frame_gravity(c->frame, &x, &y); /* get where the client should be */ @@ -420,6 +422,8 @@ void action_resize(union ActionData *data) Client *c = data->resize.c; int w = data->resize.x - c->frame->size.left - c->frame->size.right; int h = data->resize.y - c->frame->size.top - c->frame->size.bottom; + + if (!client_normal(c)) return; /* XXX window snapping/struts */