summaryrefslogtreecommitdiff
path: root/openbox/action.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-12-22 17:38:05 +0000
committerDana Jansens <danakj@orodu.net>2003-12-22 17:38:05 +0000
commitb11a9484426b2bbdf05af39ca3103008665c2e8a (patch)
tree58c8ede23d69c9112a37465bab1f6f17c3645d1b /openbox/action.c
parenta6e4aba8063494f010251393c26ff2e56fb973ba (diff)
don't use action_run_string in action.c, pass along the data so that the second action gets all the same flags
Diffstat (limited to 'openbox/action.c')
-rw-r--r--openbox/action.c13
1 files 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)