diff options
| author | Dana Jansens <danakj@orodu.net> | 2003-05-19 03:52:25 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2003-05-19 03:52:25 +0000 |
| commit | 5a7953b36aa0e23ae21f707d9fb8b6b9e882946d (patch) | |
| tree | 527919e04644a67481b2d29275b105984ab610d1 /openbox/action.h | |
| parent | 00960995a291c32d56bf3ab1eeae4e24af54be5c (diff) | |
2 in 1 again..
a) directional focus actions
b) action system changes i.e. use structs/arrays for convertings strings to actions instead of gross if-else chains
Diffstat (limited to 'openbox/action.h')
| -rw-r--r-- | openbox/action.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/openbox/action.h b/openbox/action.h index 6e0b6c52..e0ea0d56 100644 --- a/openbox/action.h +++ b/openbox/action.h @@ -12,6 +12,11 @@ struct AnyAction { Client *c; }; +struct DirectionalFocus { + Client *c; + int direction; +}; + struct Execute { Client *c; char *path; @@ -73,6 +78,7 @@ struct CycleWindows { union ActionData { struct AnyAction any; + struct DirectionalFocus dfocus; struct Execute execute; struct ClientAction client; struct MoveResizeRelative relative; @@ -106,6 +112,7 @@ Action *action_new(void (*func)(union ActionData *data)); action_resize_relative_horz - the delta action_resize_relative_vert - the delta */ + Action *action_from_string(char *name); void action_free(Action *a); @@ -197,4 +204,6 @@ void action_exit(union ActionData *data); void action_showmenu(union ActionData *data); /* CycleWindows */ void action_cycle_windows(union ActionData *data); + +void action_directional_focus(union ActionData *data); #endif |
