diff --git a/dwm.c b/dwm.c index cd9a484..cc3728f 100644 --- a/dwm.c +++ b/dwm.c @@ -140,6 +140,12 @@ typedef struct { void (*arrange)(Monitor *); } Layout; +typedef struct Systray Systray; +struct Systray { + Window win; + Client *icons; +}; + typedef struct Pertag Pertag; struct Monitor { char ltsymbol[16]; @@ -179,12 +185,6 @@ typedef struct { int monitor; } Rule; -typedef struct Systray Systray; -struct Systray { - Window win; - Client *icons; -}; - /* function declarations */ static void applyrules(Client *c); static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); @@ -1006,7 +1006,7 @@ drawstatusbar(Monitor *m, int bh, char* stext, int stw) { text[i] = '\0'; w = TEXTW(text, statusfontindex) - lrpad; - drw_text(drw, x, borderpx, w + borderpx, bh, 0, text, 0, statusfontindex); + drw_text(drw, x - 2 * sp - stw, borderpx, w + borderpx + stw, bh, 0, text, 0, statusfontindex); x += w;