dwm-meillo

changeset 316:d69cdb180a3e

small changes to dwm.1, rearranged order within main event loop
author Anselm R.Garbe <arg@10ksloc.org>
date Mon, 21 Aug 2006 07:31:15 +0200
parents d9bef4067cd5
children 45af6a8a0cbf
files README dwm.1 main.c
diffstat 3 files changed, 13 insertions(+), 11 deletions(-) [+]
line diff
     1.1 --- a/README	Fri Aug 18 13:40:34 2006 +0200
     1.2 +++ b/README	Mon Aug 21 07:31:15 2006 +0200
     1.3 @@ -1,6 +1,6 @@
     1.4  dwm - dynamic window manager
     1.5  ----------------------------
     1.6 -dwm is an extremely fast, small, and dynamic X11 window manager.
     1.7 +dwm is an extremely fast, small, and dynamic window manager for X.
     1.8  
     1.9  
    1.10  Requirements
     2.1 --- a/dwm.1	Fri Aug 18 13:40:34 2006 +0200
     2.2 +++ b/dwm.1	Mon Aug 21 07:31:15 2006 +0200
     2.3 @@ -6,7 +6,7 @@
     2.4  .RB [ \-v ]
     2.5  .SH DESCRIPTION
     2.6  .B dwm
     2.7 -is a dynamic window manager for X11. It manages windows in tiling and floating
     2.8 +is a dynamic window manager for X. It manages windows in tiling and floating
     2.9  modes. Either mode can be applied dynamically, optimizing the environment for
    2.10  the application in use and the task performed.
    2.11  .P
    2.12 @@ -21,11 +21,13 @@
    2.13  tag.
    2.14  .P
    2.15  .B dwm
    2.16 -has a small status bar which displays the text read from standard
    2.17 -input, if written. Besides that, it displays all available tags, and the title
    2.18 -of the focused window. It draws a 1-pixel border around windows to
    2.19 -indicate the focus state. Unfocused windows contain a small bar in front of
    2.20 -them displaying their tags and title.
    2.21 +contains a small status bar which displays the text read from standard
    2.22 +input. Besides that, it displays all available tags, and the title
    2.23 +of the focused window.
    2.24 +.P
    2.25 +.B dwm draws a 1-pixel border around windows to indicate the focus state.
    2.26 +Unfocused windows contain a small bar in front of them displaying their tags
    2.27 +and title.
    2.28  .SH OPTIONS
    2.29  .TP
    2.30  .B \-v
     3.1 --- a/main.c	Fri Aug 18 13:40:34 2006 +0200
     3.2 +++ b/main.c	Mon Aug 21 07:31:15 2006 +0200
     3.3 @@ -286,11 +286,9 @@
     3.4  			FD_SET(STDIN_FILENO, &rd);
     3.5  		FD_SET(xfd, &rd);
     3.6  		i = select(xfd + 1, &rd, NULL, NULL, NULL);
     3.7 -		if(i == -1 && errno == EINTR)
     3.8 +		if((i == -1) && (errno == EINTR))
     3.9  			continue;
    3.10 -		if(i < 0)
    3.11 -			eprint("select failed\n");
    3.12 -		else if(i > 0) {
    3.13 +		if(i > 0) {
    3.14  			if(readin && FD_ISSET(STDIN_FILENO, &rd)) {
    3.15  				readin = NULL != fgets(stext, sizeof(stext), stdin);
    3.16  				if(readin)
    3.17 @@ -300,6 +298,8 @@
    3.18  				drawstatus();
    3.19  			}
    3.20  		}
    3.21 +		else if(i < 0)
    3.22 +			eprint("select failed\n");
    3.23  		procevent();
    3.24  	}
    3.25  	cleanup();