config: Fix David Delassus's little mistake: occupied_tag -> occupied_bg.

This commit is contained in:
Martin Duquesnoy 2008-12-02 19:45:59 +01:00
parent 20e74f62e8
commit a4307b6364
3 changed files with 8 additions and 9 deletions

View File

@ -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());

View File

@ -236,6 +236,7 @@ int selscreen;
Conf conf;
Key *keys;
Bool exiting;
char statustext[1024];
/* Atoms / Cursors */
Atom wm_atom[WMLast];

2
wmfsrc
View File

@ -39,7 +39,7 @@ layouts
tags
{
tag_round = false
occupied_tag = "#003366"
occupied_bg = "#003366"
sel_fg = "#191919"
sel_bg = "#7E89A2"
border = "#3F485E"