summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAnselm R.Garbe <arg@10ksloc.org>2006-08-21 07:31:15 +0200
committerAnselm R.Garbe <arg@10ksloc.org>2006-08-21 07:31:15 +0200
commitb43989207a949cbc17182b451aa527afe542c98f (patch)
tree289483d500e9821f2db3cbdc56d186d95949291d
parentapplied Sanders patch (diff)
downloaddwm-b43989207a949cbc17182b451aa527afe542c98f.tar.gz
dwm-b43989207a949cbc17182b451aa527afe542c98f.zip
small changes to dwm.1, rearranged order within main event loop
Diffstat (limited to '')
-rw-r--r--README2
-rw-r--r--dwm.114
-rw-r--r--main.c8
3 files changed, 13 insertions, 11 deletions
diff --git a/README b/README
index 5915a27..4860bbe 100644
--- a/README
+++ b/README
@@ -1,6 +1,6 @@
1dwm - dynamic window manager 1dwm - dynamic window manager
2---------------------------- 2----------------------------
3dwm is an extremely fast, small, and dynamic X11 window manager. 3dwm is an extremely fast, small, and dynamic window manager for X.
4 4
5 5
6Requirements 6Requirements
diff --git a/dwm.1 b/dwm.1
index 46f0d94..dcbdd89 100644
--- a/dwm.1
+++ b/dwm.1
@@ -6,7 +6,7 @@ dwm \- dynamic window manager
6.RB [ \-v ] 6.RB [ \-v ]
7.SH DESCRIPTION 7.SH DESCRIPTION
8.B dwm 8.B dwm
9is a dynamic window manager for X11. It manages windows in tiling and floating 9is a dynamic window manager for X. It manages windows in tiling and floating
10modes. Either mode can be applied dynamically, optimizing the environment for 10modes. Either mode can be applied dynamically, optimizing the environment for
11the application in use and the task performed. 11the application in use and the task performed.
12.P 12.P
@@ -21,11 +21,13 @@ tags. Selecting a certain tag for viewing will display all windows with that
21tag. 21tag.
22.P 22.P
23.B dwm 23.B dwm
24has a small status bar which displays the text read from standard 24contains a small status bar which displays the text read from standard
25input, if written. Besides that, it displays all available tags, and the title 25input. Besides that, it displays all available tags, and the title
26of the focused window. It draws a 1-pixel border around windows to 26of the focused window.
27indicate the focus state. Unfocused windows contain a small bar in front of 27.P
28them displaying their tags and title. 28.B dwm draws a 1-pixel border around windows to indicate the focus state.
29Unfocused windows contain a small bar in front of them displaying their tags
30and title.
29.SH OPTIONS 31.SH OPTIONS
30.TP 32.TP
31.B \-v 33.B \-v
diff --git a/main.c b/main.c
index d566c9e..1bc4068 100644
--- a/main.c
+++ b/main.c
@@ -286,11 +286,9 @@ main(int argc, char *argv[])
286 FD_SET(STDIN_FILENO, &rd); 286 FD_SET(STDIN_FILENO, &rd);
287 FD_SET(xfd, &rd); 287 FD_SET(xfd, &rd);
288 i = select(xfd + 1, &rd, NULL, NULL, NULL); 288 i = select(xfd + 1, &rd, NULL, NULL, NULL);
289 if(i == -1 && errno == EINTR) 289 if((i == -1) && (errno == EINTR))
290 continue; 290 continue;
291 if(i < 0) 291 if(i > 0) {
292 eprint("select failed\n");
293 else if(i > 0) {
294 if(readin && FD_ISSET(STDIN_FILENO, &rd)) { 292 if(readin && FD_ISSET(STDIN_FILENO, &rd)) {
295 readin = NULL != fgets(stext, sizeof(stext), stdin); 293 readin = NULL != fgets(stext, sizeof(stext), stdin);
296 if(readin) 294 if(readin)
@@ -300,6 +298,8 @@ main(int argc, char *argv[])
300 drawstatus(); 298 drawstatus();
301 } 299 }
302 } 300 }
301 else if(i < 0)
302 eprint("select failed\n");
303 procevent(); 303 procevent();
304 } 304 }
305 cleanup(); 305 cleanup();