diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-09-19 17:40:26 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-09-19 17:40:26 +0000 |
| commit | 44fd94ff51239e99a604ccafec039c5453467508 (patch) | |
| tree | 309b5aeb112f65f67301205a717d8b7cef6d75b5 /openbox/action.h | |
| parent | 19e48200739dc95f9b0079a25849e7e06c99302c (diff) | |
only allow running lists of actions at a time, policy is to always allow multiple action bindings, so this enforces it, and at the same time, UngrabKeyboard() before firing actions if there are no interactive ones. This is needed for some execute's, namely gnome-panel-control --main-menu.
Diffstat (limited to 'openbox/action.h')
| -rw-r--r-- | openbox/action.h | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/openbox/action.h b/openbox/action.h index 68488731..c88ad85f 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -169,7 +169,7 @@ ObAction *action_parse(ObParseInst *i, xmlDocPtr doc, xmlNodePtr node, ObUserAction uact); void action_free(ObAction *a); -/*! Executes an action. +/*! Executes a list of actions. @param c The client associated with the action. Can be NULL. @param state The keyboard modifiers state at the time the user action occured @param button The mouse button used to execute the action. @@ -180,21 +180,21 @@ void action_free(ObAction *a); @param done If the action is completing an interactive action. This only affects interactive actions, but should generally always be FALSE. */ -void action_run_full(ObAction *a, struct _ObClient *c, +void action_run_list(GSList *acts, struct _ObClient *c, guint state, guint button, gint x, gint y, gboolean cancel, gboolean done); #define action_run_mouse(a, c, s, b, x, y) \ - action_run_full(a, c, s, b, x, y, FALSE, FALSE) + action_run_list(a, c, s, b, x, y, FALSE, FALSE) #define action_run_interactive(a, c, s, n, d) \ - action_run_full(a, c, s, 0, -1, -1, n, d) + action_run_list(a, c, s, 0, -1, -1, n, d) #define action_run_key(a, c, s, x, y) \ - action_run_full(a, c, s, 0, x, y, FALSE,FALSE) + action_run_list(a, c, s, 0, x, y, FALSE,FALSE) #define action_run(a, c, s) \ - action_run_full(a, c, s, 0, -1, -1, FALSE,FALSE) + action_run_list(a, c, s, 0, -1, -1, FALSE,FALSE) /* Execute */ void action_execute(union ActionData *data); |
