about summary refs log tree commit diff stats
diff options
context:
space:
mode:
-rw-r--r--dwm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dwm.c b/dwm.c
index 6459512..26ec20b 100644
--- 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;
>89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125