X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.h;h=ca41055859570fb467ad9c510a8f53d9fcfc50ae;hb=9f501638b55f023a6dff7c557f208083df74e4c9;hp=7545b8600f3d212e79f6578f68d5ab4e598e59ee;hpb=993fc6226d06f25513756251283e70054082ee8a;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index 7545b860..ca410558 100644 --- a/openbox/client.h +++ b/openbox/client.h @@ -3,6 +3,8 @@ #include "geom.h" #include "stacking.h" +#include "render/color.h" + #include #include @@ -16,7 +18,7 @@ struct Group; /*! Holds an icon in ARGB format */ typedef struct Icon { int width, height; - gulong *data; + pixel32 *data; } Icon; /*! The MWM Hints as retrieved from the window property @@ -108,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; @@ -481,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