fix config

This commit is contained in:
Ray Andrew 2024-10-13 16:42:58 -05:00
parent e9b07a4d70
commit 35412d6791

14
dwm.c
View file

@ -140,6 +140,12 @@ typedef struct {
void (*arrange)(Monitor *); void (*arrange)(Monitor *);
} Layout; } Layout;
typedef struct Systray Systray;
struct Systray {
Window win;
Client *icons;
};
typedef struct Pertag Pertag; typedef struct Pertag Pertag;
struct Monitor { struct Monitor {
char ltsymbol[16]; char ltsymbol[16];
@ -179,12 +185,6 @@ typedef struct {
int monitor; int monitor;
} Rule; } Rule;
typedef struct Systray Systray;
struct Systray {
Window win;
Client *icons;
};
/* function declarations */ /* function declarations */
static void applyrules(Client *c); static void applyrules(Client *c);
static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact); 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'; text[i] = '\0';
w = TEXTW(text, statusfontindex) - lrpad; 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; x += w;