dwm.c
changeset 1319 fb29ceb5932a
parent 1318 65c37b4be9cb
child 1320 a63cb246f35c
equal deleted inserted replaced
1318:65c37b4be9cb 1319:fb29ceb5932a
   345 	XSync(dpy, False);
   345 	XSync(dpy, False);
   346 }
   346 }
   347 
   347 
   348 void
   348 void
   349 cleanup(void) {
   349 cleanup(void) {
   350 	Arg a = {.i = ~0};
   350 	Arg a = {.ui = ~0};
   351 	Layout foo = { "", NULL };
   351 	Layout foo = { "", NULL };
   352 
   352 
   353 	close(STDIN_FILENO);
   353 	close(STDIN_FILENO);
   354 	view(&a);
   354 	view(&a);
   355 	lt[sellt] = &foo;
   355 	lt[sellt] = &foo;
  1638 	}
  1638 	}
  1639 }
  1639 }
  1640 
  1640 
  1641 void
  1641 void
  1642 view(const Arg *arg) {
  1642 view(const Arg *arg) {
  1643 	if(arg && (arg->i & TAGMASK) == tagset[seltags])
  1643 	if(arg && (arg->ui & TAGMASK) == tagset[seltags])
  1644 		return;
  1644 		return;
  1645 	seltags ^= 1; /* toggle sel tagset */
  1645 	seltags ^= 1; /* toggle sel tagset */
  1646 	if(arg && (arg->ui & TAGMASK))
  1646 	if(arg && (arg->ui & TAGMASK))
  1647 		tagset[seltags] = arg->i & TAGMASK;
  1647 		tagset[seltags] = arg->ui & TAGMASK;
  1648 	clearurgent();
  1648 	clearurgent();
  1649 	arrange();
  1649 	arrange();
  1650 }
  1650 }
  1651 
  1651 
  1652 /* There's no way to check accesses to destroyed windows, thus those cases are
  1652 /* There's no way to check accesses to destroyed windows, thus those cases are