JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
typo fix
[dwm.git] / dwm.c
diff --git a/dwm.c b/dwm.c
index 6459512..26ec20b 100644 (file)
--- a/dwm.c
+++ b/dwm.c
@@ -1502,7 +1502,7 @@ tagmon(const Arg *arg) {
                        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;