]> git.armaanb.net Git - dwm.git/commitdiff
small changes to dwm.1, rearranged order within main event loop
authorAnselm R.Garbe <arg@10ksloc.org>
Mon, 21 Aug 2006 05:31:15 +0000 (07:31 +0200)
committerAnselm R.Garbe <arg@10ksloc.org>
Mon, 21 Aug 2006 05:31:15 +0000 (07:31 +0200)
README
dwm.1
main.c

diff --git a/README b/README
index 5915a272b0d99fd9f2621428038d68be2c2ca27b..4860bbe53e4101c125319ff65857917f01e1da33 100644 (file)
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
 dwm - dynamic window manager
 ----------------------------
-dwm is an extremely fast, small, and dynamic X11 window manager.
+dwm is an extremely fast, small, and dynamic window manager for X.
 
 
 Requirements
diff --git a/dwm.1 b/dwm.1
index 46f0d9491b99bce7277e9d578d9cae88eb96e722..dcbdd89944e81904d6be181895c6d3de3fe25c83 100644 (file)
--- a/dwm.1
+++ b/dwm.1
@@ -6,7 +6,7 @@ dwm \- dynamic window manager
 .RB [ \-v ]
 .SH DESCRIPTION
 .B dwm
-is a dynamic window manager for X11. It manages windows in tiling and floating
+is a dynamic window manager for X. It manages windows in tiling and floating
 modes. Either mode can be applied dynamically, optimizing the environment for
 the application in use and the task performed.
 .P
@@ -21,11 +21,13 @@ tags. Selecting a certain tag for viewing will display all windows with that
 tag.
 .P
 .B dwm
-has a small status bar which displays the text read from standard
-input, if written. Besides that, it displays all available tags, and the title
-of the focused window. It draws a 1-pixel border around windows to
-indicate the focus state. Unfocused windows contain a small bar in front of
-them displaying their tags and title.
+contains a small status bar which displays the text read from standard
+input. Besides that, it displays all available tags, and the title
+of the focused window.
+.P
+.B dwm draws a 1-pixel border around windows to indicate the focus state.
+Unfocused windows contain a small bar in front of them displaying their tags
+and title.
 .SH OPTIONS
 .TP
 .B \-v
diff --git a/main.c b/main.c
index d566c9e3055ae782b3bf5a9a901b86fbcecbd480..1bc4068b1eb06ad3a98492ba926b6143abb2fb7a 100644 (file)
--- a/main.c
+++ b/main.c
@@ -286,11 +286,9 @@ main(int argc, char *argv[])
                        FD_SET(STDIN_FILENO, &rd);
                FD_SET(xfd, &rd);
                i = select(xfd + 1, &rd, NULL, NULL, NULL);
-               if(i == -1 && errno == EINTR)
+               if((i == -1) && (errno == EINTR))
                        continue;
-               if(i < 0)
-                       eprint("select failed\n");
-               else if(i > 0) {
+               if(i > 0) {
                        if(readin && FD_ISSET(STDIN_FILENO, &rd)) {
                                readin = NULL != fgets(stext, sizeof(stext), stdin);
                                if(readin)
@@ -300,6 +298,8 @@ main(int argc, char *argv[])
                                drawstatus();
                        }
                }
+               else if(i < 0)
+                       eprint("select failed\n");
                procevent();
        }
        cleanup();