# HG changeset patch # User Anselm R.Garbe # Date 1156138275 -7200 # Node ID d69cdb180a3e519335b56657d8c70962e3ab3b5a # Parent d9bef4067cd50426e396aa4d1f7a1a1d7c3413aa small changes to dwm.1, rearranged order within main event loop diff -r d9bef4067cd5 -r d69cdb180a3e README --- a/README Fri Aug 18 13:40:34 2006 +0200 +++ b/README Mon Aug 21 07:31:15 2006 +0200 @@ -1,6 +1,6 @@ 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 diff -r d9bef4067cd5 -r d69cdb180a3e dwm.1 --- a/dwm.1 Fri Aug 18 13:40:34 2006 +0200 +++ b/dwm.1 Mon Aug 21 07:31:15 2006 +0200 @@ -6,7 +6,7 @@ .RB [ \-v ] .SH DESCRIPTION .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 the application in use and the task performed. .P @@ -21,11 +21,13 @@ tag. .P .B dwm -has a small status bar which displays the text read from standard -input, if written. Besides that, it displays all available tags, and the title -of the focused window. It 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. +contains a small status bar which displays the text read from standard +input. Besides that, it displays all available tags, and the title +of the focused window. +.P +.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 .TP .B \-v diff -r d9bef4067cd5 -r d69cdb180a3e main.c --- a/main.c Fri Aug 18 13:40:34 2006 +0200 +++ b/main.c Mon Aug 21 07:31:15 2006 +0200 @@ -286,11 +286,9 @@ FD_SET(STDIN_FILENO, &rd); FD_SET(xfd, &rd); i = select(xfd + 1, &rd, NULL, NULL, NULL); - if(i == -1 && errno == EINTR) + if((i == -1) && (errno == EINTR)) continue; - if(i < 0) - eprint("select failed\n"); - else if(i > 0) { + if(i > 0) { if(readin && FD_ISSET(STDIN_FILENO, &rd)) { readin = NULL != fgets(stext, sizeof(stext), stdin); if(readin) @@ -300,6 +298,8 @@ drawstatus(); } } + else if(i < 0) + eprint("select failed\n"); procevent(); } cleanup();