Another copy of my dotfiles. Because I don't completely trust GitHub.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
326 B

  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. }