From 78282959f970d28131e6aa8d66adce359aa145dc Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Sun, 7 Sep 2003 19:03:20 +0000 Subject: little bit of an actions overhaul, added action_run* so that duplicated code can all be in the same place now woot. allow actions to specify when they can be used (ShowMenu cant in the OB_USER_ACTION_MENU_SELECTION case) remove KeyboardMove ad KeyboardResize. Instead, just use Move and Resize and determine if it should be a keyboard move/resize in the code --- openbox/misc.h | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'openbox/misc.h') diff --git a/openbox/misc.h b/openbox/misc.h index 24788c4f..f86c4484 100644 --- a/openbox/misc.h +++ b/openbox/misc.h @@ -62,4 +62,24 @@ typedef enum OB_CORNER_BOTTOMRIGHT } ObCorner; +typedef enum { + OB_MOUSE_ACTION_PRESS, + OB_MOUSE_ACTION_RELEASE, + OB_MOUSE_ACTION_CLICK, + OB_MOUSE_ACTION_DOUBLE_CLICK, + OB_MOUSE_ACTION_MOTION, + OB_NUM_MOUSE_ACTIONS +} ObMouseAction; + +typedef enum { + OB_USER_ACTION_KEYBOARD_KEY, + OB_USER_ACTION_MOUSE_PRESS, + OB_USER_ACTION_MOUSE_RELEASE, + OB_USER_ACTION_MOUSE_CLICK, + OB_USER_ACTION_MOUSE_DOUBLE_CLICK, + OB_USER_ACTION_MOUSE_MOTION, + OB_USER_ACTION_MENU_SELECTION, + OB_NUM_USER_ACTIONS +} ObUserAction; + #endif -- cgit v1.2.3