small changes to dwm.1, rearranged order within main event loop b4398920
Anselm R.Garbe · 2006-08-21 07:31 3 file(s) · +13 −11
README +1 −1
1 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 6
Requirements
dwm.1 +8 −6
6 6
.RB [ \-v ]
7 7
.SH DESCRIPTION
8 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 10
modes. Either mode can be applied dynamically, optimizing the environment for
11 11
the application in use and the task performed.
12 12
.P
21 21
tag.
22 22
.P
23 23
.B dwm
24 -
has 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
26 -
of the focused window. It draws a 1-pixel border around windows to
27 -
indicate the focus state. Unfocused windows contain a small bar in front of
28 -
them displaying their tags and title.
24 +
contains a small status bar which displays the text read from standard
25 +
input. Besides that, it displays all available tags, and the title
26 +
of the focused window.
27 +
.P
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 31
.SH OPTIONS
30 32
.TP
31 33
.B \-v
main.c +4 −4
286 286
			FD_SET(STDIN_FILENO, &rd);
287 287
		FD_SET(xfd, &rd);
288 288
		i = select(xfd + 1, &rd, NULL, NULL, NULL);
289 -
		if(i == -1 && errno == EINTR)
289 +
		if((i == -1) && (errno == EINTR))
290 290
			continue;
291 -
		if(i < 0)
292 -
			eprint("select failed\n");
293 -
		else if(i > 0) {
291 +
		if(i > 0) {
294 292
			if(readin && FD_ISSET(STDIN_FILENO, &rd)) {
295 293
				readin = NULL != fgets(stext, sizeof(stext), stdin);
296 294
				if(readin)
300 298
				drawstatus();
301 299
			}
302 300
		}
301 +
		else if(i < 0)
302 +
			eprint("select failed\n");
303 303
		procevent();
304 304
	}
305 305
	cleanup();