dwm.c
changeset 1317 40cd44593977
parent 1315 ce355cea9bb8
child 1318 65c37b4be9cb
equal deleted inserted replaced
1316:e1e92a3ec86d 1317:40cd44593977
   222 	[MapRequest] = maprequest,
   222 	[MapRequest] = maprequest,
   223 	[PropertyNotify] = propertynotify,
   223 	[PropertyNotify] = propertynotify,
   224 	[UnmapNotify] = unmapnotify
   224 	[UnmapNotify] = unmapnotify
   225 };
   225 };
   226 static Atom wmatom[WMLast], netatom[NetLast];
   226 static Atom wmatom[WMLast], netatom[NetLast];
   227 static Bool otherwm, readin;
   227 static Bool otherwm;
   228 static Bool running = True;
   228 static Bool running = True;
   229 static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */
   229 static unsigned int tagset[] = {1, 1}; /* after start, first tag is selected */
   230 static Client *clients = NULL;
   230 static Client *clients = NULL;
   231 static Client *sel = NULL;
   231 static Client *sel = NULL;
   232 static Client *stack = NULL;
   232 static Client *stack = NULL;
  1217 	XEvent ev;
  1217 	XEvent ev;
  1218 
  1218 
  1219 	/* main event loop, also reads status text from stdin */
  1219 	/* main event loop, also reads status text from stdin */
  1220 	XSync(dpy, False);
  1220 	XSync(dpy, False);
  1221 	xfd = ConnectionNumber(dpy);
  1221 	xfd = ConnectionNumber(dpy);
  1222 	readin = True;
       
  1223 	offset = 0;
  1222 	offset = 0;
  1224 	len = sizeof stext - 1;
  1223 	len = sizeof stext - 1;
  1225 	sbuf[len] = stext[len] = '\0'; /* 0-terminator is never touched */
  1224 	sbuf[len] = stext[len] = '\0'; /* 0-terminator is never touched */
  1226 	while(running) {
  1225 	while(running) {
  1227 		FD_ZERO(&rd);
  1226 		FD_ZERO(&rd);