From b11a9484426b2bbdf05af39ca3103008665c2e8a Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 22 Dec 2003 17:38:05 +0000 Subject: [PATCH] don't use action_run_string in action.c, pass along the data so that the second action gets all the same flags --- openbox/action.c | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) 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) -- 2.45.2