summaryrefslogtreecommitdiff
path: root/openbox/misc.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-09-07 19:03:20 +0000
committerDana Jansens <danakj@orodu.net>2003-09-07 19:03:20 +0000
commit78282959f970d28131e6aa8d66adce359aa145dc (patch)
tree57508152b85c3442d1b0c683497bbc12a7f5dff0 /openbox/misc.h
parentb23594d88d462f4ed1b0a26b5e303f491758f5ff (diff)
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
Diffstat (limited to 'openbox/misc.h')
-rw-r--r--openbox/misc.h20
1 files changed, 20 insertions, 0 deletions
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