config: Fix David Delassus's little mistake: occupied_tag -> occupied_bg.
This commit is contained in:
14
src/wmfs.c
14
src/wmfs.c
@@ -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());
|
||||||
|
|||||||
@@ -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];
|
||||||
|
|||||||
Reference in New Issue
Block a user