From a4307b6364484e176d613fcefe6b22cf0ba889ba Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 2 Dec 2008 19:45:59 +0100 Subject: [PATCH] config: Fix David Delassus's little mistake: occupied_tag -> occupied_bg. --- src/wmfs.c | 14 ++++++-------- src/wmfs.h | 1 + wmfsrc | 2 +- 3 files changed, 8 insertions(+), 9 deletions(-) diff --git a/src/wmfs.c b/src/wmfs.c index 30c80e3..878b3d8 100644 --- a/src/wmfs.c +++ b/src/wmfs.c @@ -123,15 +123,13 @@ void mainloop(void) { fd_set fd; - int len, r, offset = 0, sc = screen_count() - 1; - char sbuf[sizeof infobar[sc].statustext], *p; + int len, r, offset = 0; + char sbuf[sizeof statustext], *p; Bool readstdin = True; XEvent ev; - - - len = sizeof infobar[sc].statustext - 1; - sbuf[len] = infobar[sc].statustext[len] = '\0'; + len = sizeof statustext - 1; + sbuf[len] = statustext[len] = '\0'; while(!exiting) { @@ -150,7 +148,7 @@ mainloop(void) if(*p == '\n') { *p = '\0'; - strncpy(infobar[sc].statustext, sbuf, len); + strncpy(statustext, sbuf, len); p += r - 1; for(r = 0; *(p - r) && *(p - r) != '\n'; ++r); offset = r; @@ -162,7 +160,7 @@ mainloop(void) } else { - strncpy(infobar[sc].statustext, sbuf, strlen(sbuf)); + strncpy(statustext, sbuf, strlen(sbuf)); readstdin = False; } infobar_draw(screen_get_sel()); diff --git a/src/wmfs.h b/src/wmfs.h index c969dda..029f5e8 100644 --- a/src/wmfs.h +++ b/src/wmfs.h @@ -236,6 +236,7 @@ int selscreen; Conf conf; Key *keys; Bool exiting; +char statustext[1024]; /* Atoms / Cursors */ Atom wm_atom[WMLast]; diff --git a/wmfsrc b/wmfsrc index c0c5374..ec816a3 100644 --- a/wmfsrc +++ b/wmfsrc @@ -39,7 +39,7 @@ layouts tags { tag_round = false - occupied_tag = "#003366" + occupied_bg = "#003366" sel_fg = "#191919" sel_bg = "#7E89A2" border = "#3F485E"