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) mainloop(void)
{ {
fd_set fd; fd_set fd;
int len, r, offset = 0, sc = screen_count() - 1; int len, r, offset = 0;
char sbuf[sizeof infobar[sc].statustext], *p; char sbuf[sizeof statustext], *p;
Bool readstdin = True; Bool readstdin = True;
XEvent ev; XEvent ev;
len = sizeof statustext - 1;
sbuf[len] = statustext[len] = '\0';
len = sizeof infobar[sc].statustext - 1;
sbuf[len] = infobar[sc].statustext[len] = '\0';
while(!exiting) while(!exiting)
{ {
@@ -150,7 +148,7 @@ mainloop(void)
if(*p == '\n') if(*p == '\n')
{ {
*p = '\0'; *p = '\0';
strncpy(infobar[sc].statustext, sbuf, len); strncpy(statustext, sbuf, len);
p += r - 1; p += r - 1;
for(r = 0; *(p - r) && *(p - r) != '\n'; ++r); for(r = 0; *(p - r) && *(p - r) != '\n'; ++r);
offset = r; offset = r;
@@ -162,7 +160,7 @@ mainloop(void)
} }
else else
{ {
strncpy(infobar[sc].statustext, sbuf, strlen(sbuf)); strncpy(statustext, sbuf, strlen(sbuf));
readstdin = False; readstdin = False;
} }
infobar_draw(screen_get_sel()); infobar_draw(screen_get_sel());

View File

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

2
wmfsrc
View File

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