From 35412d6791042d29c01db6cb01213282ac668381 Mon Sep 17 00:00:00 2001 From: Ray Andrew <4437323+rayandrew@users.noreply.github.com> Date: Sun, 13 Oct 2024 16:42:58 -0500 Subject: [PATCH] fix config --- dwm.c | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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;