]> git.armaanb.net Git - dwm.git/commitdiff
made readin a config.h variable
authorAnselm R Garbe <garbeam@gmail.com>
Sat, 2 Aug 2008 18:12:15 +0000 (19:12 +0100)
committerAnselm R Garbe <garbeam@gmail.com>
Sat, 2 Aug 2008 18:12:15 +0000 (19:12 +0100)
config.def.h
config.mk
dwm.c

index 5908ed9029e09b7c6b45be5be30d4bace4314393..aafff8aa6cb38c535250e214eae301e5c0fec86b 100644 (file)
@@ -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" };
index 254ec53988576ba5f7b570cf585887a6cc2d7dfd..9e4636af74923e2f20b975d91b2273af2a4c9287 100644 (file)
--- a/config.mk
+++ b/config.mk
@@ -1,5 +1,5 @@
 # dwm version
-VERSION = 5.1
+VERSION = 5.2
 
 # Customize below to fit your system
 
diff --git a/dwm.c b/dwm.c
index 5f3b9c945af724013bd660ef56bc459174111ea4..279f831f8a3c9893523ccf1419af53e7d7928462 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -224,7 +224,7 @@ static void (*handler[LASTEvent]) (XEvent *) = {
        [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 @@ run(void) {
        /* 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 */