small changes to dwm.1, rearranged order within main event loop

master
Anselm R.Garbe 2006-08-21 07:31:15 +02:00
parent 2eebebf262
commit b43989207a
3 changed files with 13 additions and 11 deletions

2
README
View File

@ -1,6 +1,6 @@
dwm - dynamic window manager 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 Requirements

14
dwm.1
View File

@ -6,7 +6,7 @@ dwm \- dynamic window manager
.RB [ \-v ] .RB [ \-v ]
.SH DESCRIPTION .SH DESCRIPTION
.B dwm .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 modes. Either mode can be applied dynamically, optimizing the environment for
the application in use and the task performed. the application in use and the task performed.
.P .P
@ -21,11 +21,13 @@ tags. Selecting a certain tag for viewing will display all windows with that
tag. tag.
.P .P
.B dwm .B dwm
has a small status bar which displays the text read from standard contains a small status bar which displays the text read from standard
input, if written. Besides that, it displays all available tags, and the title input. Besides that, it displays all available tags, and the title
of the focused window. It draws a 1-pixel border around windows to of the focused window.
indicate the focus state. Unfocused windows contain a small bar in front of .P
them displaying their tags and title. .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 .SH OPTIONS
.TP .TP
.B \-v .B \-v

8
main.c
View File

@ -286,11 +286,9 @@ main(int argc, char *argv[])
FD_SET(STDIN_FILENO, &rd); FD_SET(STDIN_FILENO, &rd);
FD_SET(xfd, &rd); FD_SET(xfd, &rd);
i = select(xfd + 1, &rd, NULL, NULL, NULL); i = select(xfd + 1, &rd, NULL, NULL, NULL);
if(i == -1 && errno == EINTR) if((i == -1) && (errno == EINTR))
continue; continue;
if(i < 0) if(i > 0) {
eprint("select failed\n");
else if(i > 0) {
if(readin && FD_ISSET(STDIN_FILENO, &rd)) { if(readin && FD_ISSET(STDIN_FILENO, &rd)) {
readin = NULL != fgets(stext, sizeof(stext), stdin); readin = NULL != fgets(stext, sizeof(stext), stdin);
if(readin) if(readin)
@ -300,6 +298,8 @@ main(int argc, char *argv[])
drawstatus(); drawstatus();
} }
} }
else if(i < 0)
eprint("select failed\n");
procevent(); procevent();
} }
cleanup(); cleanup();