From 5a7953b36aa0e23ae21f707d9fb8b6b9e882946d Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Mon, 19 May 2003 03:52:25 +0000 Subject: 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 --- openbox/action.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'openbox/action.h') 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 -- cgit v1.2.3