X-Git-Url: https://git.brokenzipper.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient.h;h=ad8f506b075a8d2e1c96194f308bbe0ffdb53ce4;hb=e0fa57d21c83bbfe87b15224f699bc24628fd89f;hp=7545b8600f3d212e79f6578f68d5ab4e598e59ee;hpb=993fc6226d06f25513756251283e70054082ee8a;p=chaz%2Fopenbox diff --git a/openbox/client.h b/openbox/client.h index 7545b860..ad8f506b 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; @@ -417,6 +430,10 @@ void client_set_state(Client *self, Atom action, long data1, long data2); Client passed to it or another Client if appropriate. */ Client *client_focus_target(Client *self); +/*! Returns what client_focus would return if passed the same client, but + without focusing it or modifying the focus order lists. */ +gboolean client_can_focus(Client *self); + /*! Attempt to focus the client window */ gboolean client_focus(Client *self); @@ -481,4 +498,14 @@ 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); + +/*! Set a client window to be above/below other clients. + @layer < 0 indicates the client should be placed below other clients.
+ = 0 indicates the client should be placed with other clients.
+ > 0 indicates the client should be placed above other clients. +*/ +void client_set_layer(Client *self, int layer); + #endif