main.c
changeset 214 51ac019cf587
parent 203 81498863dc30
child 222 770233c1df06
equal deleted inserted replaced
213:f9774fba6e17 214:51ac019cf587
   249 	XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
   249 	XChangeWindowAttributes(dpy, root, CWEventMask | CWCursor, &wa);
   250 
   250 
   251 	strcpy(stext, "dwm-"VERSION);
   251 	strcpy(stext, "dwm-"VERSION);
   252 	scan();
   252 	scan();
   253 
   253 
   254 	/* main event loop, reads status text from stdin as well */
   254 	/* main event loop, also reads status text from stdin */
   255 	while(running) {
   255 	while(running) {
   256 		FD_ZERO(&rd);
   256 		FD_ZERO(&rd);
   257 		if(readin)
   257 		if(readin)
   258 			FD_SET(STDIN_FILENO, &rd);
   258 			FD_SET(STDIN_FILENO, &rd);
   259 		FD_SET(ConnectionNumber(dpy), &rd);
   259 		FD_SET(ConnectionNumber(dpy), &rd);