diff -r 90b25302c8ee -r f6514f1cdddf dwm.c --- a/dwm.c Thu Jun 25 11:10:19 2009 +0100 +++ b/dwm.c Thu Jun 25 11:17:42 2009 +0100 @@ -1502,7 +1502,7 @@ detach(c); detachstack(c); c->mon = m; - c->tags = selmon->seltags; /* assign tags of target monitor */ + c->tags = m->seltags; /* assign tags of target monitor */ attach(c); attachstack(c); m->sel = c;