Infobar: Complete requested feature #8 (By Cheaterman) infobar_position = "<pos>" by tag

This commit is contained in:
Martin Duquesnoy
2009-03-19 20:17:25 +01:00
parent 0b3a2d1b8f
commit 74fd1d7c92
10 changed files with 102 additions and 65 deletions

View File

@@ -48,8 +48,11 @@ typedef unsigned char uchar;
/* Enum */
enum { CurNormal, CurResize, CurMove, CurLast };
/* Infobar position */
enum { IB_Hide = 0, IB_Bottom = 1, IB_Top = 2 };
typedef enum { Top, Bottom, Right, Left, Center, PositionLast } Position;
/* Ewmh hints list */
enum
{
@@ -181,6 +184,7 @@ typedef struct
BarWindow *layout_button;
BarWindow *tags[MAXTAG];
XRectangle geo;
int position;
char statustext[1024];
} InfoBar;
@@ -198,6 +202,7 @@ typedef struct
float mwfact;
int nmaster;
Bool resizehint;
int barpos;
Layout layout;
} Tag;
@@ -254,7 +259,6 @@ typedef struct
char *font;
Bool raisefocus;
Bool raiseswitch;
int barpos;
struct
{
/*