main.c
changeset 61 db93644de522
parent 60 24f9c674d03f
child 64 46d44d185464
equal deleted inserted replaced
60:24f9c674d03f 61:db93644de522
   278 
   278 
   279 	strcpy(stext, "dwm-"VERSION);
   279 	strcpy(stext, "dwm-"VERSION);
   280 	scan_wins();
   280 	scan_wins();
   281 
   281 
   282 	/* main event loop, reads status text from stdin as well */
   282 	/* main event loop, reads status text from stdin as well */
       
   283 Mainloop:
   283 	while(running) {
   284 	while(running) {
   284 Mainloop:
       
   285 		FD_ZERO(&rd);
   285 		FD_ZERO(&rd);
   286 		FD_SET(0, &rd);
   286 		FD_SET(0, &rd);
   287 		FD_SET(ConnectionNumber(dpy), &rd);
   287 		FD_SET(ConnectionNumber(dpy), &rd);
   288 
   288 
   289 		i = select(ConnectionNumber(dpy) + 1, &rd, 0, 0, 0);
   289 		i = select(ConnectionNumber(dpy) + 1, &rd, 0, 0, 0);