From: Dana Jansens Date: Mon, 22 Dec 2003 17:38:05 +0000 (+0000) Subject: don't use action_run_string in action.c, pass along the data so that the second actio... X-Git-Url: https://git.dogcows.com/gitweb?a=commitdiff_plain;h=b11a9484426b2bbdf05af39ca3103008665c2e8a;p=chaz%2Fopenbox don't use action_run_string in action.c, pass along the data so that the second action gets all the same flags --- diff --git a/openbox/action.c b/openbox/action.c index 17d951cf..8eccb6b1 100644 --- a/openbox/action.c +++ b/openbox/action.c @@ -1041,7 +1041,10 @@ void action_raiselower(union ActionData *data) } } - action_run_string((raise ? "Raise" : "Lower"), c); + if (raise) + action_raise(data); + else + action_lower(data); } void action_raise(union ActionData *data) @@ -1054,17 +1057,17 @@ void action_raise(union ActionData *data) void action_unshaderaise(union ActionData *data) { if (data->client.any.c->shaded) - action_run_string("Unshade", data->client.any.c); + action_unshade(data); else - action_run_string("Raise", data->client.any.c); + action_raise(data); } void action_shadelower(union ActionData *data) { if (data->client.any.c->shaded) - action_run_string("Lower", data->client.any.c); + action_lower(data); else - action_run_string("Shade", data->client.any.c); + action_shade(data); } void action_lower(union ActionData *data)