dwm

Kris's build of dwm
git clone git clone https://git.krisyotam.com/krisyotam/dwm.git
Log | Files | Refs | README | LICENSE

focusurgent.c (328B)


      1 void
      2 focusurgent(const Arg *arg)
      3 {
      4 	Client *c;
      5 	int i;
      6 	for (c = selmon->clients; c && !c->isurgent; c = c->next);
      7 	if (c) {
      8 		for (i = 0; i < NUMTAGS && !((1 << i) & c->tags); i++);
      9 		if (i < NUMTAGS) {
     10 			if (((1 << i) & TAGMASK) != selmon->tagset[selmon->seltags])
     11 				view(&((Arg) { .ui = 1 << i }));
     12 			focus(c);
     13 		}
     14 	}
     15 }
     16