dwm.c
changeset 1421 90b25302c8ee
parent 1420 245eb72073c2
child 1422 f6514f1cdddf
equal deleted inserted replaced
1420:245eb72073c2 1421:90b25302c8ee
  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 			attach(c);
  1506 			attach(c);
  1506 			attachstack(c);
  1507 			attachstack(c);
  1507 			m->sel = c;
  1508 			m->sel = c;
  1508 			for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
  1509 			for(c = selmon->stack; c && !ISVISIBLE(c); c = c->snext);
  1509 			selmon->sel = c;
  1510 			selmon->sel = c;