diff options
Diffstat (limited to '')
| -rw-r--r-- | README | 2 | ||||
| -rw-r--r-- | dwm.1 | 14 | ||||
| -rw-r--r-- | main.c | 8 |
3 files changed, 13 insertions, 11 deletions
| @@ -1,6 +1,6 @@ | |||
| 1 | dwm - dynamic window manager | 1 | dwm - dynamic window manager |
| 2 | ---------------------------- | 2 | ---------------------------- |
| 3 | dwm is an extremely fast, small, and dynamic X11 window manager. | 3 | dwm is an extremely fast, small, and dynamic window manager for X. |
| 4 | 4 | ||
| 5 | 5 | ||
| 6 | Requirements | 6 | Requirements |
| @@ -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 |
| 9 | is a dynamic window manager for X11. It manages windows in tiling and floating | 9 | is a dynamic window manager for X. It manages windows in tiling and floating |
| 10 | modes. Either mode can be applied dynamically, optimizing the environment for | 10 | modes. Either mode can be applied dynamically, optimizing the environment for |
| 11 | the application in use and the task performed. | 11 | the 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 | |||
| 21 | tag. | 21 | tag. |
| 22 | .P | 22 | .P |
| 23 | .B dwm | 23 | .B dwm |
| 24 | has a small status bar which displays the text read from standard | 24 | contains a small status bar which displays the text read from standard |
| 25 | input, if written. Besides that, it displays all available tags, and the title | 25 | input. Besides that, it displays all available tags, and the title |
| 26 | of the focused window. It draws a 1-pixel border around windows to | 26 | of the focused window. |
| 27 | indicate the focus state. Unfocused windows contain a small bar in front of | 27 | .P |
| 28 | them displaying their tags and title. | 28 | .B dwm draws a 1-pixel border around windows to indicate the focus state. |
| 29 | Unfocused windows contain a small bar in front of them displaying their tags | ||
| 30 | and title. | ||
| 29 | .SH OPTIONS | 31 | .SH OPTIONS |
| 30 | .TP | 32 | .TP |
| 31 | .B \-v | 33 | .B \-v |
| @@ -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(); |
