summaryrefslogtreecommitdiff
path: root/openbox/client.h
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-05-19 03:52:25 +0000
committerDana Jansens <danakj@orodu.net>2003-05-19 03:52:25 +0000
commit5a7953b36aa0e23ae21f707d9fb8b6b9e882946d (patch)
tree527919e04644a67481b2d29275b105984ab610d1 /openbox/client.h
parent00960995a291c32d56bf3ab1eeae4e24af54be5c (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/client.h')
-rw-r--r--openbox/client.h14
1 files changed, 14 insertions, 0 deletions
diff --git a/openbox/client.h b/openbox/client.h
index b4e0494d..ca410558 100644
--- a/openbox/client.h
+++ b/openbox/client.h
@@ -110,6 +110,17 @@ typedef enum {
Decor_Close = 1 << 8 /*!< Display a close button */
} Decoration;
+/*! The directions used by client_find_directional */
+typedef enum {
+ Direction_North,
+ Direction_East,
+ Direction_South,
+ Direction_West,
+ Direction_NorthEast,
+ Direction_SouthEast,
+ Direction_SouthWest,
+ Direction_NorthWest
+} Direction;
typedef struct Client {
ObWindow obwin;
@@ -483,4 +494,7 @@ Client *client_search_focus_tree_full(Client *self);
*/
Client *client_search_modal_child(Client *self);
+/*! Return the "closest" client in the given direction */
+Client *client_find_directional(Client *c, Direction dir);
+
#endif