X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.h;h=ca41055859570fb467ad9c510a8f53d9fcfc50ae;hb=d6cb5adbeaf0b7fbb55aca942ae5b8f62f77b4ea;hp=b4e0494d68aeb2fea623448974dce2f2de453b88;hpb=a18c1697b1176c26e74267f2ac7a153a2cf2c442;p=chaz%2Fopenbox 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