dwm.c
changeset 1422 f6514f1cdddf
parent 1421 90b25302c8ee
child 1423 b1845c3d6e4f
equal deleted inserted replaced
1421:90b25302c8ee 1422:f6514f1cdddf
  1500 	for(i = 0, m = mons; m; m = m->next, i++)
  1500 	for(i = 0, m = mons; m; m = m->next, i++)
  1501 		if(i == arg->ui) {
  1501 		if(i == arg->ui) {
  1502 			detach(c);
  1502 			detach(c);
  1503 			detachstack(c);
  1503 			detachstack(c);
  1504 			c->mon = m;
  1504 			c->mon = m;
  1505 			c->tags = selmon->seltags; /* assign tags of target monitor */
  1505 			c->tags = m->seltags; /* assign tags of target monitor */
  1506 			attach(c);
  1506 			attach(c);
  1507 			attachstack(c);
  1507 			attachstack(c);
  1508 			m->sel = c;
  1508 			m->sel = c;
  1509 			for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
  1509 			for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
  1510 			selmon->sel = c;
  1510 			selmon->sel = c;