made readin a config.h variable
Anselm R Garbe garbeam@gmail.com
Sat, 02 Aug 2008 19:12:15 +0100
3 files changed,
3 insertions(+),
3 deletions(-)
M
config.def.h
→
config.def.h
@@ -12,6 +12,7 @@ static unsigned int borderpx = 1; /* border pixel of windows */
static unsigned int snap = 32; /* snap pixel */ static Bool showbar = True; /* False means no bar */ static Bool topbar = True; /* False means bottom bar */ +static Bool readin = True; /* False means do not read stdin */ /* tagging */ static const char tags[][MAXTAGLEN] = { "1", "2", "3", "4", "5", "6", "7", "8", "9" };
M
dwm.c
→
dwm.c
@@ -224,7 +224,7 @@ [PropertyNotify] = propertynotify,
[UnmapNotify] = unmapnotify }; static Atom wmatom[WMLast], netatom[NetLast]; -static Bool otherwm, readin; +static Bool otherwm; static Bool running = True; static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */ static Client *clients = NULL;@@ -1219,7 +1219,6 @@
/* main event loop, also reads status text from stdin */ XSync(dpy, False); xfd = ConnectionNumber(dpy); - readin = True; offset = 0; len = sizeof stext - 1; sbuf[len] = stext[len] = '\0'; /* 0-terminator is never touched */